convert generatesNotif to return a enum, either NOTIF or RESCIND, or undefined if the message type should not send a push notif.
Linear Task: ENG-2644
Paths
| Differential D6239 Authored by ginsu on Jan 11 2023, 12:11 PM.
Details Summary convert generatesNotif to return a enum, either NOTIF or RESCIND, or undefined if the message type should not send a push notif. Linear Task: ENG-2644 Test Plan flow also tested chat creation, message creation, message liking/unliking, and adding members to a chat
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptJan 11 2023, 12:11 PM2023-01-11 12:11:08 (UTC-8) ginsu edited the summary of this revision. (Show Details)Jan 11 2023, 12:13 PM2023-01-11 12:13:40 (UTC-8) Harbormaster completed remote builds in B15262: Diff 20810.Jan 11 2023, 12:26 PM2023-01-11 12:26:27 (UTC-8) Comment Actions I think it would be good to update message-creator.js in this diff, so doesGenerateNotif ? messageInfo : undefined checks if it's pushTypes.NOTIF specifically. As of this revision, returning RESCIND would result in a new push notif being sent, which seems unexpected This revision now requires changes to proceed.Jan 11 2023, 12:57 PM2023-01-11 12:57:31 (UTC-8) ginsu retitled this revision from [lib] convert generatesNotif to return a enum to [lib/keyserver] convert generatesNotif to return a enum.Jan 11 2023, 4:10 PM2023-01-11 16:10:47 (UTC-8) Harbormaster completed remote builds in B15276: Diff 20832.Jan 11 2023, 4:22 PM2023-01-11 16:22:21 (UTC-8) Comment Actions Please address comment before landing
This revision is now accepted and ready to land.Jan 11 2023, 6:53 PM2023-01-11 18:53:43 (UTC-8) Harbormaster completed remote builds in B15279: Diff 20837.Jan 11 2023, 8:15 PM2023-01-11 20:15:05 (UTC-8) Closed by commit rCOMM2b08c6c1367b: [lib/keyserver] convert generatesNotif to return a enum (authored by ginsu). · Explain WhyJan 11 2023, 8:16 PM2023-01-11 20:16:42 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 20838 keyserver/src/creators/message-creator.js
lib/shared/messages/add-members-message-spec.js
lib/shared/messages/change-role-message-spec.js
lib/shared/messages/change-settings-message-spec.js
|