calls: fix notifications

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-10-28 13:06:17 -06:00
parent bcea875e66
commit 3498ed8dc1
2 changed files with 154 additions and 106 deletions
-4
View File
@@ -64,8 +64,6 @@ type TelegramClient struct {
stopTakeoutTimer *time.Timer
takeoutDialogsOnce sync.Once
activeCalls map[int64]networkid.PortalKey
prevReactionPoll map[networkid.PortalKey]time.Time
}
@@ -136,7 +134,6 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
takeoutAccepted: exsync.NewEvent(),
activeCalls: map[int64]networkid.PortalKey{},
prevReactionPoll: map[networkid.PortalKey]time.Time{},
}
dispatcher := UpdateDispatcher{
@@ -201,7 +198,6 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
})
dispatcher.OnChat(client.onChat)
dispatcher.OnPhoneCall(client.onPhoneCall)
dispatcher.OnGroupCall(client.onGroupCall)
client.ScopedStore = tc.Store.GetScopedStore(telegramUserID)