change check for currentSharingMode
This commit is contained in:
parent
41271f87e8
commit
3b1e1d19a0
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class ShareLocationHelper(private val app: TelegramApplication) {
|
|||
if (location != null && app.isInternetConnectionAvailable) {
|
||||
val chatLivePeriods = app.settings.getChatLivePeriods()
|
||||
if (chatLivePeriods.isNotEmpty()) {
|
||||
if (app.settings.currentSharingMode == TelegramUiHelper.getUserName(app.telegramHelper.getCurrentUser()!!)) {
|
||||
if (app.settings.currentSharingMode == null) {
|
||||
app.telegramHelper.sendLiveLocationMessage(chatLivePeriods, location.latitude, location.longitude)
|
||||
} else {
|
||||
chatLivePeriods.forEach { (chatId, livePeriod) ->
|
||||
|
|
Loading…
Reference in a new issue