mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Cut off excessive message in last-page MAM queries more reliably
This commit is contained in:
parent
3eacc4cec5
commit
84a6484e86
1 changed files with 1 additions and 1 deletions
|
|
@ -2408,7 +2408,7 @@ func (c *Client) GetMessagesBetween(chatID, fromMessageId, lastMessageId int64,
|
|||
if limit < 0 {
|
||||
fromPos := -1
|
||||
for i, message := range newMessages.Messages {
|
||||
if message.Id == fromMessageId {
|
||||
if message.Id >= fromMessageId {
|
||||
fromPos = i+1
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue