mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
[MM-62086] Don't include deleted DMs/GMs when returning archived channels (#29572)
This commit is contained in:
parent
57372bd06b
commit
3eb95af974
1 changed files with 1 additions and 1 deletions
|
|
@ -1507,7 +1507,7 @@ func (s SqlChannelStore) GetDeleted(teamId string, offset int, limit int, userId
|
|||
|
||||
if !skipTeamMembershipCheck {
|
||||
builder = builder.Where(sq.Or{
|
||||
sq.NotEq{"Type": model.ChannelTypePrivate},
|
||||
sq.Eq{"Type": model.ChannelTypeOpen},
|
||||
sq.And{
|
||||
sq.Eq{"Type": model.ChannelTypePrivate},
|
||||
sq.Expr("Id IN (?)", sq.Select("ChannelId").From("ChannelMembers").Where(sq.Eq{"UserId": userId})),
|
||||
|
|
|
|||
Loading…
Reference in a new issue