Page MenuHomePhabricator
Feed All Stories

Mar 24 2023

varun updated the diff for D7113: [native] RustPromiseManager.

make promises map thread-safe

Mar 24 2023, 3:19 PM
ashoat added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 24 2023, 2:56 PM
rohan added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 24 2023, 2:51 PM
ashoat accepted D7113: [native] RustPromiseManager.

Talked to @varun offline, plan is to handle thread safety in a later diff

Mar 24 2023, 2:50 PM
varun added a comment to D7114: [native][draft] Calling Rust get_42() function from JS async.

i also missed jon's feedback from earlier so i'll address those comments now

Mar 24 2023, 2:04 PM
ashoat requested changes to D7113: [native] RustPromiseManager.

Collection should be threadsafe

Mar 24 2023, 2:04 PM
varun planned changes to D7114: [native][draft] Calling Rust get_42() function from JS async.

yeah fair i should just split this out into two diffs

Mar 24 2023, 2:02 PM
atul updated the diff for D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.

fix

Mar 24 2023, 2:00 PM
varun updated the diff for D7113: [native] RustPromiseManager.

address last piece of feedback

Mar 24 2023, 2:00 PM
ashoat requested changes to D7114: [native][draft] Calling Rust get_42() function from JS async.

Is this still meant to be a dummy / example diff that doesn't get landed?

Mar 24 2023, 2:00 PM
ashoat closed D7164: [keyserver] Launch NSE for build 199 and above.
Mar 24 2023, 1:58 PM
ashoat committed rCOMM8e3ede03a4e4: [keyserver] Launch NSE for build 199 and above (authored by ashoat).
[keyserver] Launch NSE for build 199 and above
Mar 24 2023, 1:58 PM
ashoat closed D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 1:58 PM
ashoat committed rCOMMe7b714f20e83: Allow while(true) in the JS codebase (authored by ashoat).
Allow while(true) in the JS codebase
Mar 24 2023, 1:58 PM
ashoat accepted D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..

Please make the requested changes before landing

Mar 24 2023, 1:57 PM
ashoat accepted D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 1:55 PM
ashoat added inline comments to D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 1:55 PM
ashoat added a comment to D7164: [keyserver] Launch NSE for build 199 and above.

No, I don't think so

Mar 24 2023, 1:52 PM
ashoat added inline comments to D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 1:52 PM
ashoat added inline comments to D6973: [web] Extract from drawer item code that can be reused in community items.
Mar 24 2023, 1:49 PM
ashoat accepted D7125: Use new notifications permission API to modify push notifs settings alerts on Android 13.
Mar 24 2023, 1:47 PM
varun planned changes to D7113: [native] RustPromiseManager.
Mar 24 2023, 1:45 PM
varun updated the diff for D7113: [native] RustPromiseManager.

remove unnecessary include

Mar 24 2023, 1:44 PM
varun updated the diff for D7113: [native] RustPromiseManager.

address feedback

Mar 24 2023, 1:43 PM
varun requested review of D7114: [native][draft] Calling Rust get_42() function from JS async.
Mar 24 2023, 1:37 PM
ashoat requested changes to D7106: Native Java code to request notifications permissions from JS on Android 13.

I'm starting to wonder if it'd be better to revert my suggestion just to avoid all that fuss.

Mar 24 2023, 1:34 PM
atul closed D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 12:30 PM
atul committed rCOMMf96f662517f4: [cargo] Add `--release` flag to native library/tunnelbroker builds (authored by atul).
[cargo] Add `--release` flag to native library/tunnelbroker builds
Mar 24 2023, 12:30 PM
atul accepted D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 12:29 PM
ashoat accepted D7105: Build files set-up for Android 13.

Awesome!! Thanks for taking the time to revise this a bunch, I know it was more complicated than initially expected

Mar 24 2023, 12:28 PM
atul added inline comments to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Mar 24 2023, 12:27 PM
ashoat requested review of D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 12:26 PM
ashoat added a comment to D7101: [web-db] add `sql.js` types.

Thanks for explaining!

Mar 24 2023, 12:25 PM
ashoat requested changes to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Really close!

Mar 24 2023, 12:21 PM
atul updated the diff for D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.

rebase and land

Mar 24 2023, 12:17 PM
varun accepted D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 12:15 PM
ashoat requested changes to D7117: [keyserver] Add migration - process messages in our db for search.

Back to you

Mar 24 2023, 12:14 PM
ashoat added inline comments to D7117: [keyserver] Add migration - process messages in our db for search.
Mar 24 2023, 12:13 PM
ashoat requested changes to D7077: [keyserver] Process new messages for search.
Mar 24 2023, 12:03 PM
ashoat requested changes to D7076: [keyserver] Add search table to the db.

Ah but actually some of my other feedback hasn't been addressed yet

Mar 24 2023, 12:03 PM
ashoat accepted D7076: [keyserver] Add search table to the db.

In retrospect, D7077 is the right place for this discussion – @inka, would you mind responding to my questions in this diff there?

Mar 24 2023, 12:02 PM
ashoat added inline comments to D7076: [keyserver] Add search table to the db.
Mar 24 2023, 12:01 PM
atul added inline comments to D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 11:59 AM
atul updated the diff for D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.

don't include avatar if null (this should also now be landable as is)

Mar 24 2023, 11:57 AM
ashoat requested changes to D7065: [native] Added displaying labels to InlineEngagement.

Will this affect the height of the item? Have you made the necessary changes to the height determination code (textMessageItemHeight)?

Mar 24 2023, 11:56 AM
ashoat accepted D7168: [lib] Introduce encrypted media types.

I think we should include localMediaSelection, but not sure if a future diff adds that

Mar 24 2023, 11:54 AM
ashoat accepted D7169: [lib] Shim encrypted multimedia.
Mar 24 2023, 11:53 AM
ashoat requested changes to D7167: [keyserver] Process and store encrypted media.
Mar 24 2023, 11:47 AM
atul updated the summary of D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 11:47 AM
atul published D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds for review.
Mar 24 2023, 11:46 AM
ashoat requested changes to D7166: [lib][keyserver] Attach MIME and encryption key to uploads.

Passing back to you with question about multiple files being uploaded to the same endpoint at once. I don't think we actually ever do this, so I'm wondering if we can simply throw an exception if we get multiple files in the same upload

Mar 24 2023, 11:41 AM
atul added a comment to D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.

Let's avoid setting avatar unless it exists, and only set it for a given UserInfo when that user calls the upstream methods to actually set their avatar. (At which point UPDATE_USER updates should help us avoid state inconsistencies.)

Mar 24 2023, 11:37 AM
tomek accepted D6977: [web] Remove active drawer item highlight.
Mar 24 2023, 11:34 AM
atul added a comment to D7164: [keyserver] Launch NSE for build 199 and above.

There shouldn't need to be any native release associated with this landing then, correct?

Mar 24 2023, 11:33 AM
atul accepted D7164: [keyserver] Launch NSE for build 199 and above.
Mar 24 2023, 11:33 AM
atul closed D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.
Mar 24 2023, 11:33 AM
atul committed rCOMM59208c2a222a: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo` (authored by atul).
[keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`
Mar 24 2023, 11:33 AM
atul updated the diff for D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.

rebase and land

Mar 24 2023, 11:32 AM
tomek added inline comments to D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 11:31 AM
atul closed D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`.
Mar 24 2023, 11:28 AM
atul committed rCOMM7927b6a593cb: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success` (authored by atul).
[lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`
Mar 24 2023, 11:28 AM
tomek accepted D6976: [web] Use new handlers in communnity drawer.
Mar 24 2023, 11:27 AM
tomek accepted D6974: [web] Add handlers for drawer community items.
Mar 24 2023, 11:22 AM
tomek added inline comments to D6973: [web] Extract from drawer item code that can be reused in community items.
Mar 24 2023, 11:03 AM
tomek added inline comments to D6930: [keyserver/lib] Set up responders, endpoints, and related functions to toggle a message pin.
Mar 24 2023, 11:00 AM
ashoat added inline comments to D7166: [lib][keyserver] Attach MIME and encryption key to uploads.
Mar 24 2023, 11:00 AM
atul updated the diff for D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`.

rebase and land

Mar 24 2023, 10:58 AM
ashoat requested changes to D7129: [lib] Added new 'sendEditMessage' action.
Mar 24 2023, 10:57 AM
atul resigned from D6930: [keyserver/lib] Set up responders, endpoints, and related functions to toggle a message pin.
Mar 24 2023, 10:55 AM
ashoat requested changes to D7143: [lib] Function to dispatch edit message action.
Mar 24 2023, 10:54 AM
ashoat added inline comments to D7143: [lib] Function to dispatch edit message action.
Mar 24 2023, 10:54 AM
atul resigned from D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 10:54 AM
ashoat added inline comments to D7140: [lib] Displaying edited content in a pending thread.
Mar 24 2023, 10:52 AM
rohan added inline comments to D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 10:40 AM
marcin updated the diff for D7125: Use new notifications permission API to modify push notifs settings alerts on Android 13.

Refactor code to make more readable check for ability to request notifications permission

Mar 24 2023, 10:35 AM
marcin updated the diff for D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..

More robust check as to whether issue notifications permission request.

Mar 24 2023, 10:33 AM
marcin updated the diff for D7106: Native Java code to request notifications permissions from JS on Android 13.
  1. Replace method overloading with different names.
  2. Simplify check for Android OS version.
  3. Add comment to explain hardcoded request code for notifications permission.
Mar 24 2023, 10:32 AM
marcin updated the diff for D7105: Build files set-up for Android 13.

Add intent-filter for MainActivity to be started from SplashActivity in debug build

Mar 24 2023, 10:30 AM
rohan added inline comments to D6930: [keyserver/lib] Set up responders, endpoints, and related functions to toggle a message pin.
Mar 24 2023, 10:20 AM
marcin added inline comments to D7125: Use new notifications permission API to modify push notifs settings alerts on Android 13.
Mar 24 2023, 10:02 AM
marcin added inline comments to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Mar 24 2023, 9:56 AM
michal accepted D7119: [web-db] add unit tests to function for parsing SQLite query.

I don't have experience in writing tests in jest but looks reasonable

Mar 24 2023, 9:36 AM
tomek accepted D6930: [keyserver/lib] Set up responders, endpoints, and related functions to toggle a message pin.
Mar 24 2023, 9:29 AM
michal accepted D7101: [web-db] add `sql.js` types.
Mar 24 2023, 9:29 AM
ashoat attached a referenced file: F443322: Screenshot 2023-03-24 at 10.28.41 AM.png.
Mar 24 2023, 9:22 AM
ashoat attached a referenced file: F443323: Screenshot 2023-03-24 at 12.18.25 PM.png.
Mar 24 2023, 9:22 AM
ashoat added inline comments to D7076: [keyserver] Add search table to the db.
Mar 24 2023, 9:22 AM
tomek accepted D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 9:19 AM
tomek added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.

Makes sense! Thanks for clarifying and answering the questions!

Mar 24 2023, 9:09 AM
tomek accepted D7112: [keyserver/lib] Set up responders, endpoints, and related functions to fetch all pinned messages.
Mar 24 2023, 8:20 AM
rohan updated the diff for D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.

Add a comment explaining why we don't check subthread_permissions here and also ORDER BY m.pin_time DESC to fetch pinned messages from newest to oldest

Mar 24 2023, 8:16 AM
kamil added inline comments to D7101: [web-db] add `sql.js` types.
Mar 24 2023, 8:03 AM
kamil updated the diff for D7101: [web-db] add `sql.js` types.

address review

Mar 24 2023, 8:02 AM
rohan updated the diff for D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Discussed the revision mainly offline with @ashoat, so I'll copy the changes we discussed from our chat here, as well as outline any additional changes.

Mar 24 2023, 7:23 AM
inka updated the diff for D7117: [keyserver] Add migration - process messages in our db for search.

Address review

Mar 24 2023, 7:08 AM
inka added inline comments to D7117: [keyserver] Add migration - process messages in our db for search.
Mar 24 2023, 7:07 AM
rohan added inline comments to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.
Mar 24 2023, 6:39 AM
rohan added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.

The current fetchPinnedMessageInfos query doesn't have the ability to paginate, but it can always be added in later. We could initially fetch all of the pinned messages at once from the server, but have a task to paginate the fetching.

Yeah agreed, I've made a task to track: https://linear.app/comm/issue/ENG-3397/add-pagination-to-fetching-message-pins-for-a-thread

Separately, I'm a bit confused about how the client will determine eg. how many messages are pinned for a given chat. Is this info going to be fetched on-demand when the user opens the chat? (In which case it would appear "dynamically" after being fetched.) Or are we looking to "cache" this information for each thread, so that we correctly display it when opened?

I think it would be good to avoid having to fetch anything "dynamically" when a chat is opened. Depending on what information we show by default (I don't recall the designs exactly but it might just be a number of pinned messages), we might want to consider modifying ThreadInfo to store this information.

That's a good point, it probably would be good to store the number in ThreadInfo. I've similarly made a follow-up task: https://linear.app/comm/issue/ENG-3396/store-the-number-of-pinned-messages-in-threadinfo

Mar 24 2023, 6:34 AM
marcin added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 24 2023, 6:30 AM
bartek added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 24 2023, 6:12 AM