Skip to content

Commit

Permalink
fix: Fixed chat.live_location_update event when there are a current s…
Browse files Browse the repository at this point in the history
…hared location
  • Loading branch information
edgardmessias committed Jul 10, 2022
1 parent 07316fb commit 085a719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat/events/registerLiveLocationUpdateEvent.ts
Expand Up @@ -106,7 +106,7 @@ function registerLiveLocationUpdateEvent() {
/**
* Start for all active chats
*/
ChatStore.once('collection_has_synced', () => {
internalEv.once('conn.main_ready', () => {
const chats = ChatStore.getModelsArray().slice(0, config.liveLocationLimit);
chats.forEach((chat) => {
LiveLocationStore.update(chat.id)
Expand Down

0 comments on commit 085a719

Please sign in to comment.