diff options
author | devonh <devon.dmytro@gmail.com> | 2023-07-06 15:15:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 15:15:24 +0000 |
commit | d507c5fc9534f2d9e994ce8706f5d51ff192dfdf (patch) | |
tree | d357b40f29b89b0b5a4466a3915f1b26ba0cb080 /syncapi | |
parent | fea946d9148338f75ca3b4eb7ef224a6ea4d0e5b (diff) |
Add pseudoID compatibility to Invites (#3126)
Diffstat (limited to 'syncapi')
-rw-r--r-- | syncapi/notifier/notifier.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/notifier/notifier.go b/syncapi/notifier/notifier.go index af8ab010..a8733f6f 100644 --- a/syncapi/notifier/notifier.go +++ b/syncapi/notifier/notifier.go @@ -115,7 +115,7 @@ func (n *Notifier) OnNewEvent( // If this is an invite, also add in the invitee to this list. if ev.Type() == "m.room.member" && ev.StateKey() != nil { targetUserID, err := n.rsAPI.QueryUserIDForSender(context.Background(), *validRoomID, spec.SenderID(*ev.StateKey())) - if err != nil { + if err != nil || targetUserID == nil { log.WithError(err).WithField("event_id", ev.EventID()).Errorf( "Notifier.OnNewEvent: Failed to find the userID for this event", ) |