Create direct message respect the user role (Guest/Normal user) (#11697)

* Create direct message respect the user role (Guest/Normal user)

* Fixing build

* Updating Timer store layer
Этот коммит содержится в:
Jesús Espino
2019-08-06 11:33:32 +02:00
коммит произвёл GitHub
родитель 619f0ebf5c
Коммит 2df3951f6f
7 изменённых файлов: 37 добавлений и 24 удалений

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

@@ -583,7 +583,7 @@ func (s *TimerLayerChannelStore) ClearCaches() {
return
}
func (s *TimerLayerChannelStore) CreateDirectChannel(userId string, otherUserId string) (*model.Channel, *model.AppError) {
func (s *TimerLayerChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError) {
start := timemodule.Now()
resultVar0, resultVar1 := s.ChannelStore.CreateDirectChannel(userId, otherUserId)