bridgev2/backfill: ignore nil reactions

This commit is contained in:
Tulir Asokan 2025-11-13 18:10:27 +02:00
commit a0cb5c6129

View file

@ -394,6 +394,9 @@ func (portal *Portal) compileBatchMessage(ctx context.Context, source *UserLogin
}
slices.Sort(partIDs)
for _, reaction := range msg.Reactions {
if reaction == nil {
continue
}
reactionIntent, ok := portal.GetIntentFor(ctx, reaction.Sender, source, RemoteEventReactionRemove)
if !ok {
continue