Fix push notification content for file only messages (#8346)

Этот коммит содержится в:
Joram Wilander
2018-02-22 09:00:13 -05:00
коммит произвёл GitHub
родитель 342d05bcfc
Коммит 1b3808f3ec
3 изменённых файлов: 16 добавлений и 2 удалений

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

@@ -1414,6 +1414,12 @@ func TestGetPushNotificationMessage(t *testing.T) {
ExpectedMessage: "user uploaded one or more files in a direct message",
ExpectedCategory: model.CATEGORY_CAN_REPLY,
},
"only files without channel, public channel": {
HasFiles: true,
PushNotificationContents: model.GENERIC_NO_CHANNEL_NOTIFICATION,
ChannelType: model.CHANNEL_OPEN,
ExpectedMessage: "user uploaded one or more files",
},
} {
t.Run(name, func(t *testing.T) {
locale := tc.Locale