mirror of
https://github.com/mautrix/telegram.git
synced 2026-05-17 07:25:46 +03:00
reactions: remove incorrect error
This commit is contained in:
@@ -120,7 +120,9 @@ func (t *TelegramClient) handleTelegramReactions(ctx context.Context, msg *tg.Me
|
||||
for _, reaction := range reactionsList {
|
||||
peer, ok := reaction.PeerID.(*tg.PeerUser)
|
||||
if !ok {
|
||||
return fmt.Errorf("unknown peer type: %T", reaction.PeerID)
|
||||
// TODO handle channel peers
|
||||
log.Debug().Type("peer_type", reaction.PeerID).Msg("Ignoring reaction from non-user peer")
|
||||
continue
|
||||
}
|
||||
userID := ids.MakeUserID(peer.UserID)
|
||||
reactionLimit, err := t.getReactionLimit(ctx, userID)
|
||||
|
||||
Reference in New Issue
Block a user