From fbbadc81385efb9bdaf734bef55d6185454a3f93 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Thu, 31 Mar 2022 13:45:46 +0300 Subject: [PATCH] Rebind location service when the previous sharing is stopped. --- .../vector/app/features/home/room/detail/TimelineViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt index 024c42e503..dc1df9a96e 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt @@ -1229,6 +1229,8 @@ class TimelineViewModel @AssistedInject constructor( override fun onLocationServiceStopped() { _viewEvents.post(RoomDetailViewEvents.HideLocationSharingIndicator) + // Bind again in case user decides to share live location without leaving the room + locationSharingServiceConnection.bind(this) } override fun onCleared() {