reactions: fix double-puppeting

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-09-03 15:10:56 -06:00
parent 3b6af95976
commit 75eea8e2cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (t *TelegramClient) FetchMessages(ctx context.Context, fetchParams bridgev2
backfillMessage.Reactions = append(backfillMessage.Reactions, &bridgev2.BackfillReaction{
Timestamp: time.Unix(int64(reaction.Date), 0),
Sender: bridgev2.EventSender{
IsFromMe: reaction.My,
IsFromMe: peer.UserID == t.telegramUserID,
SenderLogin: ids.MakeUserLoginID(peer.UserID),
Sender: ids.MakeUserID(peer.UserID),
},
+1 -1
View File
@@ -136,7 +136,7 @@ func (t *TelegramClient) handleTelegramReactions(ctx context.Context, msg *tg.Me
users[userID].Reactions = append(users[userID].Reactions, &bridgev2.BackfillReaction{
Timestamp: time.Unix(int64(reaction.Date), 0),
Sender: bridgev2.EventSender{
IsFromMe: reaction.My,
IsFromMe: peer.UserID == t.telegramUserID,
SenderLogin: ids.MakeUserLoginID(peer.UserID),
Sender: userID,
},