Page MenuHomePhorge
Feed All Stories

Mar 25 2023

kamil closed D6996: [web-db] generate `CryptoKey` and persist.
Mar 25 2023, 12:01 PM
kamil committed rCOMMc6ea9a5a2f99: [web-db] generate `CryptoKey` and persist.
Mar 25 2023, 12:01 PM
kamil closed D6995: [web-db] implement crypto functions.
Mar 25 2023, 12:01 PM
kamil committed rCOMM7096eb583d29: [web-db] implement crypto functions.
Mar 25 2023, 12:01 PM
rohan updated the diff for D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Incorporate requested feedback + test to make sure message pinning still works

Mar 25 2023, 11:52 AM
kamil added a comment to D7104: [web-db] add unit tests for worker crypto utils.

FYI By mistake, two diffs had different order in the stack than in my branch on git - that's why I needed to fix parent/child revisions because arcanist didn't allow me to arc diff but this has no influence on the code itself

Mar 25 2023, 11:51 AM
kamil updated the diff for D7104: [web-db] add unit tests for worker crypto utils.

rebase before landing

Mar 25 2023, 11:44 AM
kamil updated the diff for D6996: [web-db] generate `CryptoKey` and persist.

rebase before landing

Mar 25 2023, 11:41 AM
kamil updated the diff for D6995: [web-db] implement crypto functions.

rebase before landing

Mar 25 2023, 11:10 AM
kamil closed D7102: [web-db] implement function to get database version.
Mar 25 2023, 11:02 AM
kamil closed D7103: [web-db] add unit tests for `sql.js`.
Mar 25 2023, 11:02 AM
kamil committed rCOMM9943cf1dd98c: [web-db] implement function to get database version.
Mar 25 2023, 11:02 AM
kamil committed rCOMMb191d4bc8962: [web-db] add unit tests for `sql.js`.
Mar 25 2023, 11:02 AM
kamil closed D7101: [web-db] add `sql.js` types.
Mar 25 2023, 11:02 AM
kamil committed rCOMM3f1a02bb68b0: [web-db] add `sql.js` types.
Mar 25 2023, 11:02 AM
kamil updated the diff for D7103: [web-db] add unit tests for `sql.js`.

rebase before landing

Mar 25 2023, 10:37 AM
kamil updated the diff for D7102: [web-db] implement function to get database version.

rebase before landing

Mar 25 2023, 10:36 AM
kamil updated the diff for D7101: [web-db] add `sql.js` types.

reabse before landing

Mar 25 2023, 10:34 AM
ashoat accepted D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Please apply the requested change before landing!

Mar 25 2023, 10:00 AM
ashoat added inline comments to D7168: [lib] Introduce encrypted media types.
Mar 25 2023, 9:56 AM
ashoat accepted D7167: [keyserver] Process and store encrypted media.
Mar 25 2023, 9:54 AM
ashoat accepted D7166: [lib][keyserver] Attach MIME and encryption key to uploads.
Mar 25 2023, 9:51 AM
ashoat accepted D7113: [native] RustPromiseManager.

Looks great, just minor nits! Great work on the synchronization, really for the distraction looking at threadsafe collections

Mar 25 2023, 9:40 AM
ashoat added inline comments to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Mar 25 2023, 9:33 AM
ashoat added a comment to D7106: Native Java code to request notifications permissions from JS on Android 13.

Thanks @bartek, your explanation makes sense... I agree now that doing something on the Java side doesn't make any sense. I think we can move the discussion to D7120 for the JS side and safely land this diff as-is

Mar 25 2023, 9:29 AM
ashoat requested changes to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Mar 25 2023, 9:26 AM
bartek updated the diff for D7168: [lib] Introduce encrypted media types.

Added a short description for the holder field

Mar 25 2023, 6:21 AM
bartek updated the diff for D7167: [keyserver] Process and store encrypted media.
  • Updated validateAndConvert to accept a single object argument
  • Used serverCanHandleTypes to validate MIME type
Mar 25 2023, 6:12 AM
bartek updated the diff for D7166: [lib][keyserver] Attach MIME and encryption key to uploads.

Fix encryption_key -> encryptionKey

Mar 25 2023, 5:51 AM
bartek added inline comments to D7168: [lib] Introduce encrypted media types.
Mar 25 2023, 5:46 AM
bartek added inline comments to D7167: [keyserver] Process and store encrypted media.
Mar 25 2023, 5:42 AM
bartek added inline comments to D7166: [lib][keyserver] Attach MIME and encryption key to uploads.
Mar 25 2023, 5:41 AM
bartek added a comment to D7106: Native Java code to request notifications permissions from JS on Android 13.

First of all, I'm sorry that my previous message sounds personal to you, I didn't mean it in any case.

Mar 25 2023, 5:38 AM
ashoat accepted D7106: Native Java code to request notifications permissions from JS on Android 13.

After gathering the discussion above my statement on this is that:

  1. I would follow @bartek approach since as he stated it is a common practice he encountered in open source projects.
  2. If there is no acceptance to this approach I will make this method resolve not to two but to three values: false, true, null. The promise resolved to null will be interpreted in JS code that the request is already in progress and another promise will shortly resolve to some meaningful value we can react to (by querying for device token or setting it to null). It will probably be an early return in JS. Alternatively to resolving to ?boolean we can resolve to string constants such as GRANTED, DENIED and REQUEST_ALREADY_IN_PROGRESS.
Mar 25 2023, 1:48 AM
rohan updated the diff for D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Use Promise.all([...]) for checkThreadPermission and fetchMessageInfoByID to reduce the number of awaits (instead of await checkThreadPermission and await fetchMessageInfoByID)

Mar 25 2023, 1:31 AM
ashoat requested review of D7174: [keyserver] Fix account deletion performance.
Mar 25 2023, 12:31 AM

Mar 24 2023

rohan updated the diff for D6930: [keyserver/lib] Set up responders, endpoints, and related functions to toggle a message pin.

Remove threadID from toggleMessagePinRequestInputValidator

Mar 24 2023, 10:48 PM
rohan updated the diff for D6929: [keyserver] Add a function to toggle the pin status of a message.

Fetch the threadID via the messageID, remove threadID from ToggleMessagePinRequest and consolidate the two togglePinQuery queries into one concrete query (all addressing feedback)

Mar 24 2023, 10:48 PM
varun added 1 blocking reviewer(s) for D7113: [native] RustPromiseManager: ashoat.
Mar 24 2023, 10:29 PM
varun requested review of D7113: [native] RustPromiseManager.

sorry, requesting review again because i decided to just add the thread safety changes to this diff....

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

return early when we can

Mar 24 2023, 10:29 PM
varun planned changes to D7113: [native] RustPromiseManager.

sorry addressing feedback now

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

make promises map thread-safe

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

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

Mar 24 2023, 9: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, 9:04 PM
ashoat requested changes to D7113: [native] RustPromiseManager.

Collection should be threadsafe

Mar 24 2023, 9: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, 9:02 PM
atul updated the diff for D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.

fix

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

address last piece of feedback

Mar 24 2023, 9: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, 9:00 PM
ashoat closed D7164: [keyserver] Launch NSE for build 199 and above.
Mar 24 2023, 8:58 PM
ashoat committed rCOMM8e3ede03a4e4: [keyserver] Launch NSE for build 199 and above.
Mar 24 2023, 8:58 PM
ashoat closed D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 8:58 PM
ashoat committed rCOMMe7b714f20e83: Allow while(true) in the JS codebase.
Mar 24 2023, 8: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, 8:57 PM
ashoat accepted D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 8:55 PM
ashoat added inline comments to D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 8: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, 8:52 PM
ashoat added inline comments to D6929: [keyserver] Add a function to toggle the pin status of a message.
Mar 24 2023, 8:52 PM
ashoat added inline comments to D6973: [web] Extract from drawer item code that can be reused in community items.
Mar 24 2023, 8:49 PM
ashoat accepted D7125: Use new notifications permission API to modify push notifs settings alerts on Android 13.
Mar 24 2023, 8:47 PM
varun planned changes to D7113: [native] RustPromiseManager.
Mar 24 2023, 8:45 PM
varun updated the diff for D7113: [native] RustPromiseManager.

remove unnecessary include

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

address feedback

Mar 24 2023, 8:43 PM
varun requested review of D7114: [native][draft] Calling Rust get_42() function from JS async.
Mar 24 2023, 8: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, 8:34 PM
atul closed D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 7:30 PM
atul committed rCOMMf96f662517f4: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 7:30 PM
atul accepted D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 7: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, 7: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, 7:27 PM
ashoat requested review of D7173: Allow while(true) in the JS codebase.
Mar 24 2023, 7:26 PM
ashoat added a comment to D7101: [web-db] add `sql.js` types.

Thanks for explaining!

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

Really close!

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

rebase and land

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

Back to you

Mar 24 2023, 7:14 PM
ashoat added inline comments to D7117: [keyserver] Add migration - process messages in our db for search.
Mar 24 2023, 7:13 PM
ashoat requested changes to D7077: [keyserver] Process new messages for search.
Mar 24 2023, 7: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, 7: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, 7:02 PM
ashoat added inline comments to D7076: [keyserver] Add search table to the db.
Mar 24 2023, 7:01 PM
atul added inline comments to D7162: [keyserver] Update `fetchUserInfos` to include `avatar`s in `GlobalUserInfo`s.
Mar 24 2023, 6:59 PM
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, 6:57 PM
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, 6:56 PM
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, 6:54 PM
ashoat accepted D7169: [lib] Shim encrypted multimedia.
Mar 24 2023, 6:53 PM
ashoat requested changes to D7167: [keyserver] Process and store encrypted media.
Mar 24 2023, 6:47 PM
atul updated the summary of D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds.
Mar 24 2023, 6:47 PM
atul published D7172: [cargo] Add `--release` flag to native library/tunnelbroker builds for review.
Mar 24 2023, 6:46 PM
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, 6:41 PM
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, 6:37 PM
tomek accepted D6977: [web] Remove active drawer item highlight.
Mar 24 2023, 6:34 PM
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, 6:33 PM
atul accepted D7164: [keyserver] Launch NSE for build 199 and above.
Mar 24 2023, 6:33 PM
atul closed D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.
Mar 24 2023, 6:33 PM
atul committed rCOMM59208c2a222a: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.
Mar 24 2023, 6:33 PM
atul updated the diff for D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.

rebase and land

Mar 24 2023, 6:32 PM