Skip to content

Commit

Permalink
chatinfo: always give ghosts PL 50
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 19, 2024
1 parent 6e2ba4a commit d306626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/connector/chatinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (gc *GMClient) wrapChatInfo(ctx context.Context, conv *gmproto.Conversation
userLoginChanged := false
eventsDefaultPL := 0
if conv.ReadOnly {
eventsDefaultPL = 99
eventsDefaultPL = 50
}
members := &bridgev2.ChatMemberList{
IsFull: true,
Expand Down Expand Up @@ -111,6 +111,7 @@ func (gc *GMClient) wrapChatInfo(ctx context.Context, conv *gmproto.Conversation
members.Members = append(members.Members, bridgev2.ChatMember{
EventSender: bridgev2.EventSender{Sender: gc.MakeUserID(pcp.ID.ParticipantID)},
UserInfo: gc.wrapParticipantInfo(pcp),
PowerLevel: ptr.Ptr(50),
})
}
}
Expand Down

0 comments on commit d306626

Please sign in to comment.