handletelegram: add workaround for instantly deleted messages

This commit is contained in:
Tulir Asokan
2026-04-02 23:53:06 +03:00
parent b6c7b0e78b
commit 693ced7dea
4 changed files with 23 additions and 23 deletions
+4
View File
@@ -96,6 +96,8 @@ type TelegramClient struct {
availableReactionsList []string
isPremiumCache atomic.Bool
recentMessageRooms *exsync.RingBuffer[networkid.MessageID, networkid.PortalKey]
telegramFmtParams *telegramfmt.FormatParams
matrixParser *matrixfmt.HTMLParser
@@ -171,6 +173,8 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
prevReactionPoll: map[networkid.PortalKey]time.Time{},
recentMessageRooms: exsync.NewRingBuffer[networkid.MessageID, networkid.PortalKey](32),
clientInitialized: exsync.NewEvent(),
clientDone: exsync.NewEvent(),
}