fix: harden channel rights and sticker compatibility
Co-authored-by: HSgram <3013954224@qq.com>
This commit is contained in:
parent
6867d201ed
commit
599453a3c4
33 changed files with 1520 additions and 130 deletions
|
|
@ -72,7 +72,17 @@ func (s *ChannelStore) GetParticipants(ctx context.Context, viewerUserID, channe
|
|||
(m.banned_rights->>'SendPolls')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'ChangeInfo')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'InviteUsers')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'PinMessages')::boolean IS TRUE
|
||||
(m.banned_rights->>'PinMessages')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'ManageTopics')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendPhotos')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendVideos')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendRoundvideos')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendAudios')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendVoices')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendDocs')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendPlain')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'EditRank')::boolean IS TRUE OR
|
||||
(m.banned_rights->>'SendReactions')::boolean IS TRUE
|
||||
)`)
|
||||
case domain.ChannelParticipantsSearch:
|
||||
where = append(where, "m.status = 'active'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue