Skip to content

Commit

Permalink
handle PromotePending(PniAci)Members
Browse files Browse the repository at this point in the history
  • Loading branch information
maltee1 committed Aug 12, 2024
1 parent 77c150f commit d2bb2c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/connector/groupinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@ func (s *SignalClient) groupChangeToChatInfoChange(ctx context.Context, rev uint
PrevMembership: event.MembershipBan,
})
}
for _, member := range groupChange.PromotePendingMembers {
mc = append(mc, bridgev2.ChatMember{
EventSender: s.makeEventSender(member.ACI),
Membership: event.MembershipJoin,
PrevMembership: event.MembershipInvite,
})
}
for _, member := range groupChange.PromotePendingPniAciMembers {
mc = append(mc, bridgev2.ChatMember{
EventSender: s.makeEventSender(member.ACI),
Membership: event.MembershipJoin,
PrevMembership: event.MembershipInvite,
})
}
if len(mc) > 0 || pls != nil {
ic.MemberChanges = &bridgev2.ChatMemberList{Members: mc, PowerLevels: pls}
}
Expand Down

0 comments on commit d2bb2c3

Please sign in to comment.