Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32209899
D14870.1765128800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
D14870.1765128800.diff
View Options
diff --git a/lib/push/utils.js b/lib/push/utils.js
--- a/lib/push/utils.js
+++ b/lib/push/utils.js
@@ -122,16 +122,14 @@
promises.push(
...messageIndices.map(async messageIndex => {
const messageInfo = newMessageInfos[messageIndex];
- if (messageInfo.creatorID === userID) {
- // We don't need to notify the message author about their message
- return undefined;
- }
-
const { type } = messageInfo;
const { getMessageNotifyType } = messageSpecs[type];
let messageNotifyType = messageNotifyTypes.SET_UNREAD;
- if (getMessageNotifyType) {
+ if (messageInfo.creatorID === userID) {
+ // We don't need to notify the message author about their message
+ messageNotifyType = messageNotifyTypes.NONE;
+ } else if (getMessageNotifyType) {
messageNotifyType = await getMessageNotifyType(messageInfo, {
notifTargetUserID: userID,
userNotMemberOfSubthreads,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 5:33 PM (18 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842479
Default Alt Text
D14870.1765128800.diff (1006 B)
Attached To
Mode
D14870: [lib] Return own messages from fetchMessageNotifyType
Attached
Detach File
Event Timeline
Log In to Comment