rename getChatLivePeriod
This commit is contained in:
parent
a5a6154d0b
commit
e0271f99a5
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ class TelegramSettings(private val app: TelegramApplication) {
|
||||||
this.shareLocationChats = shareLocationChats.toHashSet()
|
this.shareLocationChats = shareLocationChats.toHashSet()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getChatExpireTime(chatId: Long) = chatLivePeriods[chatId]
|
fun getChatLivePeriod(chatId: Long) = chatLivePeriods[chatId]
|
||||||
|
|
||||||
fun stopSharingLocationToChats() {
|
fun stopSharingLocationToChats() {
|
||||||
this.shareLocationChats = emptySet()
|
this.shareLocationChats = emptySet()
|
||||||
|
|
|
@ -111,7 +111,7 @@ class SetTimeDialogFragment : DialogFragment() {
|
||||||
chatLivePeriods.clear()
|
chatLivePeriods.clear()
|
||||||
bundle?.getLongArray(CHATS_KEY)?.also {
|
bundle?.getLongArray(CHATS_KEY)?.also {
|
||||||
for (i in 0 until it.size step 2) {
|
for (i in 0 until it.size step 2) {
|
||||||
val expireTime = settings.getChatExpireTime(it[i])
|
val expireTime = settings.getChatLivePeriod(it[i])
|
||||||
chatLivePeriods[it[i]] = expireTime ?: it[i + 1]
|
chatLivePeriods[it[i]] = expireTime ?: it[i + 1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue