aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-14 21:49:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-14 23:01:24 +0100
commitf1ad240e59cb10936379ead4dd64437cfd95ff4e (patch)
tree3f51f203cf8bfe005590db14d8b84497e5acec50
parent77d26e02d46441958303f111ff846e159cb51714 (diff)
telegram-chat: never decrease the local offset
-rw-r--r--telegram-chat2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram-chat b/telegram-chat
index a3f1640..51b3572 100644
--- a/telegram-chat
+++ b/telegram-chat
@@ -144,4 +144,4 @@ $WaitFullyConnected;
}
}
:set TelegramChatOffset ([ :pick $TelegramChatOffset 1 3 ], \
- [ $IfThenElse ($UpdateID > 0) ($UpdateID + 1) ($TelegramChatOffset->2) ]);
+ [ $IfThenElse ($UpdateID >= $TelegramChatOffset->2) ($UpdateID + 1) ($TelegramChatOffset->2) ]);