Этот коммит содержится в:
Anurag Shivarathri
2021-11-15 10:43:07 +05:30
коммит произвёл GitHub
родитель 65c670a4c9
Коммит c603b1b989
2 изменённых файлов: 7 добавлений и 1 удалений

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

@@ -175,7 +175,7 @@ func (a *App) getPushNotificationMessage(contentsConfig, postMessage string, exp
}
if contentsConfig == model.FullNotification {
if channelType == model.ChannelTypeDirect {
if channelType == model.ChannelTypeDirect && replyToThreadType != model.CommentsNotifyCRT {
return model.ClearMentionTags(postMessage)
}
return senderName + ": " + model.ClearMentionTags(postMessage)

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

@@ -677,6 +677,12 @@ func TestGetPushNotificationMessage(t *testing.T) {
ChannelType: model.ChannelTypeDirect,
ExpectedMessage: "this is a message",
},
"full message, direct message channel, commented on CRT enabled thread": {
Message: "this is a message",
replyToThreadType: model.CommentsNotifyCRT,
ChannelType: model.ChannelTypeDirect,
ExpectedMessage: "user: this is a message",
},
"generic message with channel, public channel, no mention": {
Message: "this is a message",
PushNotificationContents: model.GenericNotification,