Only update status when clicking onto app (#6435)

Этот коммит содержится в:
Joram Wilander
2017-05-24 09:42:35 -04:00
коммит произвёл GitHub
родитель 751469979a
Коммит b84891f654

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

@@ -1041,7 +1041,7 @@ func SetActiveChannel(userId string, channelId string) *model.AppError {
} else {
oldStatus = status.Status
status.ActiveChannel = channelId
if !status.Manual {
if !status.Manual && channelId != "" {
status.Status = model.STATUS_ONLINE
}
status.LastActivityAt = model.GetMillis()