Fix push notification content for file only messages (#8346)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
342d05bcfc
Коммит
1b3808f3ec
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user