Rebind location service when the previous sharing is stopped.

This commit is contained in:
Onuray Sahin 2022-03-31 13:45:46 +03:00
parent 7999bd7523
commit fbbadc8138

View file

@ -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() {