-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notify: get notifs from activity, not hark #3609
Conversation
native: fix issues with reactions in DMs
…ing-attachment native: blur message input when adding an attachment
…mages native: fix some issues with posting images to galleries
native: wire up chat sub
…d-focus-issues native: fix keyboard focus issues by relying on the OS
Fixes TLON-2068
Fixes TLON-2054
Fixes TLON-2038
Fixes TLON-2039
…op in ListItemTextIcon
…nnel root views Fixes TLON-2065
Fixes TLON-1966
Fixes TLON-2053
Fixes TLON-2066
Fixes TLON-2033
…istItemContent Fixes TLON-2058
native: low-priority omnibus
…inner-from-channel-view native: remove loading spinner from channel view
…s-in-note-content native: fix missing serifs in note content
…r-row-on-dms-and-multidms native: fix missing author row on DMs and multiDMS
…ked-images-in-gallery-posts native: better handle linked images in gallery posts
…t issue in threads
…oining-channels native: correctly handle channel join updates
ops: keep dev in sync with staging
…-in-galleries native: fix weird unread banner in gallery channels
… Avatar and GroupListItemContent
native: more low-priority fixes
…d the thread/postscreen view, add new shared keyboardavoidingview component
…sage-spacing-and-keyboard-offsets native: reduce space within/between chat messages, fix keyboard offset in thread view
The change as described above is simple enough. But there's a catch here that pulls in many lines of low-complexity high-nuance code: we want to continue supporting old clients. Notify passes notification uids through a pipeline where we can't trivially slap on additional markers/details. Current/old-style clients use these uids to look up notification data in the hark agent directly. Here, we propose a new scheme, of asking the notify agent itself about notification details, creating some separation of concerns, or at least separating us from hark. Clients may not update to use this scheme right away, so we include code that converts new-style activity events into old-style hark notifications, and injects them into hark. This way, we can support both old and new clients while emitting a single notification uid. Due to lack of context, this conversion cannot always achieve 100% parity with the old-style notifications. These cases have been marked for ::REVIEW explicitly. Smoke-tested, but not yet seen working end-to-end. Closes TLON-1517.
== | ||
:: | ||
%dm-post | ||
::REVIEW should maybe not be rendered if you haven't accepted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, this may unintentionally produce hark duplicates, but that's ok
=; base=^path | ||
?~ id-reply base | ||
(snoc base (rsh 4 (scot %ui u.id-reply))) | ||
?- kind.nest ::REVIEW technically want the -.kind-data of the post... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ok for now, but yes will have to change later
The change as described above is simple enough. But there's a catch here that pulls in many lines of low-complexity high-nuance code: we want to continue supporting old clients.
Notify passes notification uids through a pipeline where we can't trivially slap on additional markers/details. Current/old-style clients use these uids to look up notification data in the hark agent directly.
Here, we propose a new scheme, of asking the notify agent itself about notification details, creating some separation of concerns, or at least separating us from hark.
Clients may not update to use this scheme right away, so we include code that converts new-style activity events into old-style hark notifications, and injects them into hark. This way, we can support both old and new clients while emitting a single notification uid.
Due to lack of context, this conversion cannot always achieve 100% parity with the old-style notifications. These cases have been marked for
::REVIEW
explicitly.Smoke-tested, but not yet seen working end-to-end.
Closes TLON-1517.