Introduce a new message type for deleting a message
https://linear.app/comm/issue/ENG-10325/create-a-new-message-type
Depends on D14505
Paths
| Differential D14510 Authored by tomek on Fri, Mar 28, 4:10 AM.
Tags None Referenced Files
Subscribers None
Details Summary Introduce a new message type for deleting a message https://linear.app/comm/issue/ENG-10325/create-a-new-message-type Depends on D14505 Test Plan Flow
Diff Detail
Event TimelineHarbormaster completed remote builds in B33861: Diff 47608.Fri, Mar 28, 4:29 AM2025-03-28 04:29:25 (UTC-7)
Harbormaster completed remote builds in B33862: Diff 47609.Fri, Mar 28, 5:03 AM2025-03-28 05:03:19 (UTC-7) tomek added a child revision: D14511: [lib] Introduce delete message spec.Fri, Mar 28, 5:45 AM2025-03-28 05:45:43 (UTC-7) Comment Actions Can you retitle all of the diffs in this stack to explicitly reference message deletion? Just realized that they're just generically titled. This revision is now accepted and ready to land.Fri, Mar 28, 6:42 AM2025-03-28 06:42:15 (UTC-7) Harbormaster failed remote builds in B33864: Diff 47611!Fri, Mar 28, 6:55 AM2025-03-28 06:55:08 (UTC-7) tomek retitled this revision from [lib] Introduce a new message type to [lib] Introduce delete message type.Thu, Apr 3, 8:16 AM2025-04-03 08:16:17 (UTC-7) Comment Actions
Sure!
Revision Contents
Diff 47609 lib/selectors/chat-selectors.js
lib/shared/message-utils.js
lib/shared/messages/delete-message-spec.js
lib/shared/messages/message-specs.js
|
We definitely should return something from this lambda since otherwise it is useless to assign it to variable.
If we find that we don't have permissions then just calling await this.requestAndroidNotificationsPermission(); would result in a prompt asking for notifications permissions. However if the user grants those permissions then hasPermissions is still falsy (since promise returned nothing), so deviceToken will be set to null. Nevertheless permissions are actually granted byt the OS, so the state on the device and keyserver would heal itself on next render.
This differential fixes this case so that if user grants permissions correct state is achieved immediately without need for additional re-render to heal the state.