MM-20681 Fix custom post types not marking channel unread when using Mark as Unread (#13247)

* MM-20681 Fix custom post types not marking channel unread when using Mark as Unread

* Fix inverted if statements
Этот коммит содержится в:
Harrison Healey
2019-12-03 14:51:50 -05:00
коммит произвёл GitHub
родитель df95748e86
Коммит 4a23d4b282
7 изменённых файлов: 192 добавлений и 25 удалений

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

@@ -1194,7 +1194,7 @@ func (a *App) countMentionsFromPost(user *model.User, post *model.Post) (int, *m
return 0, countErr
}
return int(count), countErr
return count, countErr
}
channelMember, err := a.GetChannelMember(channel.Id, user.Id)