Fix negative buffer
This commit is contained in:
parent
c64b29a2a7
commit
648b62b22f
1 changed files with 6 additions and 0 deletions
|
@ -1450,7 +1450,13 @@ class TelegramSettings(private val app: TelegramApplication) {
|
|||
}
|
||||
var sentMessages = 0
|
||||
var pendingTdLibText = 0
|
||||
set(value) {
|
||||
field = max(0, value)
|
||||
}
|
||||
var pendingTdLibMap = 0
|
||||
set(value) {
|
||||
field = max(0, value)
|
||||
}
|
||||
var pendingTextMessage = false
|
||||
var pendingMapMessage = false
|
||||
var shouldSendViaBotTextMessage = false
|
||||
|
|
Loading…
Reference in a new issue