From 57c0dcbb8403611f0c6db3c0f106c90c57162281 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Wed, 26 Oct 2022 13:13:50 +0800 Subject: [PATCH] Revert "* add an exception for approval flow notifications." This reverts commit 9637c6d3030461983922fb08f2ddbbaba5004d52. --- .../extension/xuan/im/ext/model/class/xuanxuan.class.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php b/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php index d1074e6e53..8391277656 100644 --- a/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php +++ b/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php @@ -214,16 +214,11 @@ class xuanxuanIm extends imModel $messageGroups[$contentData->contentType][] = $message; continue; } - if($contentData->objectType == 'story' && $contentData->action == 'reviewed') + if ($contentData->objectType == 'story' && $contentData->action == 'reviewed') { $extra = explode(',', $contentDataOuter->extra)[0]; $messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor-$extra"][] = $message; } - if($message->contentType == 'text') - { - $messageGroups['text'][] = $message; - continue; - } else { $messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor"][] = $message;