Merge pull request #8208 from osmandapp/Suggested_List
save shareInfo to suggested when sharing time expire
This commit is contained in:
commit
35cf7fae17
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ class ShareLocationHelper(private val app: TelegramApplication) {
|
|||
app.settings.getChatsShareInfo().forEach { (chatId, shareInfo) ->
|
||||
val currentTime = System.currentTimeMillis() / 1000
|
||||
when {
|
||||
shareInfo.getChatLiveMessageExpireTime() <= 0 -> app.settings.shareLocationToChat(chatId, false)
|
||||
shareInfo.getChatLiveMessageExpireTime() <= 0 -> {
|
||||
app.settings.shareLocationToChat(chatId, false)
|
||||
app.settings.addTimePeriodToLastItem(shareInfo.chatId, shareInfo.livePeriod)
|
||||
}
|
||||
currentTime > shareInfo.currentMessageLimit -> {
|
||||
shareInfo.apply {
|
||||
val newLivePeriod =
|
||||
|
|
Loading…
Reference in a new issue