remove unnecessary check
This commit is contained in:
parent
c7f7bef3cc
commit
e958a25646
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class ShareLocationHelper(private val app: TelegramApplication) {
|
||||||
var bufferedMessagesFull = false
|
var bufferedMessagesFull = false
|
||||||
|
|
||||||
chatsShareInfo.values.forEach { shareInfo ->
|
chatsShareInfo.values.forEach { shareInfo ->
|
||||||
if (shareInfo.pendingTdLibText >= MAX_MESSAGES_IN_TDLIB_PER_CHAT || shareInfo.pendingTdLibMap >= MAX_MESSAGES_IN_TDLIB_PER_CHAT || app.locationMessages.getBufferedMessagesCountForChat(shareInfo.chatId) >= MAX_MESSAGES_IN_TDLIB_PER_CHAT) {
|
if (shareInfo.pendingTdLibText >= MAX_MESSAGES_IN_TDLIB_PER_CHAT || shareInfo.pendingTdLibMap >= MAX_MESSAGES_IN_TDLIB_PER_CHAT) {
|
||||||
bufferedMessagesFull = true
|
bufferedMessagesFull = true
|
||||||
}
|
}
|
||||||
when (app.settings.shareTypeValue) {
|
when (app.settings.shareTypeValue) {
|
||||||
|
|
Loading…
Reference in a new issue