Add separator between DMs on your team and not (#2910)

Этот коммит содержится в:
Joram Wilander
2016-05-06 12:08:58 -04:00
родитель d2f9fd52fe
Коммит 0cfcf5c5de
7 изменённых файлов: 47 добавлений и 4 удалений

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

@@ -434,7 +434,7 @@ func (s SqlUserStore) GetEtagForDirectProfiles(userId string) StoreChannel {
result := StoreResult{}
updateAt, err := s.GetReplica().SelectInt(`
SELECT
SELECT
UpdateAt
FROM
Users
@@ -454,13 +454,14 @@ func (s SqlUserStore) GetEtagForDirectProfiles(userId string) StoreChannel {
Channels.Type = 'D'
AND Channels.Id = ChannelMembers.ChannelId
AND ChannelMembers.UserId = :UserId))
OR Id IN (SELECT
OR Id IN (SELECT
Name
FROM
Preferences
WHERE
UserId = :UserId
AND Category = 'direct_channel_show')
ORDER BY UpdateAt DESC
`, map[string]interface{}{"UserId": userId})
if err != nil {
result.Data = fmt.Sprintf("%v.%v", model.CurrentVersion, model.GetMillis())