Skip to content

Commit

Permalink
Merge pull request #9 from alrs/ipc-err
Browse files Browse the repository at this point in the history
imessage/ipc: fix dropped error
  • Loading branch information
tulir authored Jan 9, 2024
2 parents 6076fe7 + 8169955 commit 722246d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imessage/ipc/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ func fnMessage(ctx context.Context, req ReqMessage) any {
case event.StateMember:
memberContent := req.Event.Content.Parsed.(*event.MemberEventContent)
parsed, err := uri.ParseIdentifier(*req.Event.StateKey, uri.ParseiMessageDM)

if err != nil {
return err
}
newParticipants := slices.Clone(portal.Participants)
if memberContent.Membership == event.MembershipLeave {
newParticipants = slices.DeleteFunc(newParticipants, func(u uri.ParsedURI) bool {
Expand Down

0 comments on commit 722246d

Please sign in to comment.