remove unnecessary check in MyLocationTabFragment
This commit is contained in:
parent
76fba24c4d
commit
6768fd0745
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue