Use constants for NotifyProps keys. (#9901)

We have constants for (most) of the notify props keys. We should use
them consistently, instead of sometimes and other times having strings
scattered around the place.
Этот коммит содержится в:
George Goldberg
2018-11-28 16:11:41 +00:00
коммит произвёл Harrison Healey
родитель 1607d18e55
Коммит 09eae76c00
5 изменённых файлов: 50 добавлений и 47 удалений

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

@@ -357,7 +357,7 @@ func DoesStatusAllowPushNotification(userNotifyProps model.StringMap, status *mo
return false
}
pushStatus, ok := userNotifyProps["push_status"]
pushStatus, ok := userNotifyProps[model.PUSH_STATUS_NOTIFY_PROP]
if (pushStatus == model.STATUS_ONLINE || !ok) && (status.ActiveChannel != channelId || model.GetMillis()-status.LastActivityAt > model.STATUS_CHANNEL_TIMEOUT) {
return true
}