diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt index 89b460b38a..65dcae4d8c 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt @@ -490,9 +490,7 @@ class MyLocationTabFragment : Fragment(), TelegramListener, ChatLiveMessagesList setOnCheckedChangeListener { _, isChecked -> if (!isChecked) { app.settings.shareLocationToChat(chat.id, false) - if (!app.settings.hasAnyChatToShareLocation()) { - app.shareLocationHelper.stopSharingLocation() - } + app.shareLocationHelper.stopSharingLocation() removeItem(chat) } }