fix (#18793)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
65c670a4c9
Коммит
c603b1b989
@@ -175,7 +175,7 @@ func (a *App) getPushNotificationMessage(contentsConfig, postMessage string, exp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if contentsConfig == model.FullNotification {
|
if contentsConfig == model.FullNotification {
|
||||||
if channelType == model.ChannelTypeDirect {
|
if channelType == model.ChannelTypeDirect && replyToThreadType != model.CommentsNotifyCRT {
|
||||||
return model.ClearMentionTags(postMessage)
|
return model.ClearMentionTags(postMessage)
|
||||||
}
|
}
|
||||||
return senderName + ": " + model.ClearMentionTags(postMessage)
|
return senderName + ": " + model.ClearMentionTags(postMessage)
|
||||||
|
|||||||
@@ -677,6 +677,12 @@ func TestGetPushNotificationMessage(t *testing.T) {
|
|||||||
ChannelType: model.ChannelTypeDirect,
|
ChannelType: model.ChannelTypeDirect,
|
||||||
ExpectedMessage: "this is a message",
|
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": {
|
"generic message with channel, public channel, no mention": {
|
||||||
Message: "this is a message",
|
Message: "this is a message",
|
||||||
PushNotificationContents: model.GenericNotification,
|
PushNotificationContents: model.GenericNotification,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user