Use master to fetch user profiles when creating a GM (#32152)
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
124ceb54ee
Коммит
d042d242dd
@@ -559,7 +559,7 @@ func (scs *Service) createGroupChannel(invite channelInviteMsg, rc *model.Remote
|
||||
return nil, false, fmt.Errorf("cannot create group channel `%s` there are no local users", invite.ChannelId)
|
||||
}
|
||||
|
||||
// check if this DM already exists.
|
||||
// check if this GM already exists.
|
||||
channelName := model.GetGroupNameFromUserIds(invite.DirectParticipantIDs)
|
||||
channelExists, err := scs.server.GetStore().Channel().GetByName("", channelName, true)
|
||||
if err != nil && !isNotFoundError(err) {
|
||||
|
||||
Ссылка в новой задаче
Block a user