reactions: poll for reactions on read receipt

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-10-24 12:36:18 -06:00
parent 0f933f691b
commit e266d1ac80
7 changed files with 175 additions and 42 deletions
+5
View File
@@ -65,6 +65,8 @@ type TelegramClient struct {
takeoutDialogsOnce sync.Once
activeCalls map[int64]networkid.PortalKey
prevReactionPoll map[networkid.PortalKey]time.Time
}
var (
@@ -133,6 +135,9 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
userLogin: login,
takeoutAccepted: exsync.NewEvent(),
activeCalls: map[int64]networkid.PortalKey{},
prevReactionPoll: map[networkid.PortalKey]time.Time{},
}
dispatcher := UpdateDispatcher{
UpdateDispatcher: tg.NewUpdateDispatcher(),