Use master to fetch user profiles when creating a GM (#32152)

Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es>
Этот коммит содержится в:
Miguel de la Cruz
2025-06-26 15:47:29 +02:00
коммит произвёл GitHub
родитель 124ceb54ee
Коммит d042d242dd
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@@ -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) {