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.
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
1607d18e55
Коммит
09eae76c00
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user