Fix negative buffer

This commit is contained in:
max-klaus 2020-01-27 00:06:20 +03:00
parent c64b29a2a7
commit 648b62b22f

View file

@ -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