stream-chat-js icon indicating copy to clipboard operation
stream-chat-js copied to clipboard

feat: add static location and live location support

Open arnautov-anton opened this issue 10 months ago • 1 comments

Description of the changes, What, Why and How?

This PR adds

  • LiveLocationManager class - helper to handle registered live locations (see use in React SDK PR)
  • Channel.sendStaticLocation - sends a message with single static_location attachment
  • Channel.startLiveLocationSharing - sends a message with single live_location attachment and dispatches local live_location_sharing.started event to notify LiveLocationManager instances
  • Channel.stopLiveLocationSharing - dispatches local live_location_sharing.stopped event to notify LiveLocationManager instances (should probably just update message attachment with stopped_sharing instead)

arnautov-anton avatar Dec 19 '24 23:12 arnautov-anton