Page MenuHomePhorge
Feed All Stories

Mar 7 2023

ashoat added a comment to D6982: [lib] Add deviceTypes constant for enumerating all valid mobile device types.

Not sure what you mean – deviceTypesObj can't be extended outside of this file since it's not exported. We're actually using Object.freeze for Flow, otherwise $Values<typeof deviceTypesObj> maps to string instead of 'ios' | 'android'

Mar 7 2023, 6:57 PM
ashoat accepted D6998: [keyserver] update compare-user.js to get missing users by querying identity service.

Please address comments before landing

Mar 7 2023, 6:55 PM
ashoat accepted D6997: [keyserver] add new compareUsers function to rust-node-addon.

JS looks good with some minor nits. Somebody should look at Rust

Mar 7 2023, 6:51 PM
varun accepted D6984: [keyserver] Non-identity parts for comparing users.
Mar 7 2023, 6:30 PM
varun updated the diff for D6998: [keyserver] update compare-user.js to get missing users by querying identity service.

remove "// eslint-disable-next-line no-unused-vars"

Mar 7 2023, 6:29 PM
varun accepted D6983: [keyserver] Introduce fetchNativeCookieIDsForUserIDs.
Mar 7 2023, 6:27 PM
varun added a comment to D6982: [lib] Add deviceTypes constant for enumerating all valid mobile device types.
Mar 7 2023, 6:25 PM
varun accepted D6982: [lib] Add deviceTypes constant for enumerating all valid mobile device types.
Mar 7 2023, 6:22 PM
varun published D6997: [keyserver] add new compareUsers function to rust-node-addon for review.
Mar 7 2023, 6:19 PM
varun published D6998: [keyserver] update compare-user.js to get missing users by querying identity service for review.
Mar 7 2023, 6:18 PM
kamil published D6996: [web-db] generate `CryptoKey` and persist for review.
Mar 7 2023, 6:10 PM
kamil published D6995: [web-db] implement crypto functions for review.
Mar 7 2023, 6:10 PM
kamil published D6994: [web-db] implement types for `SubtleCrypto` module for review.
Mar 7 2023, 6:08 PM
kamil published D6993: [web-db] initialize SQLite database for review.
Mar 7 2023, 6:08 PM
kamil published D6992: [web-db] implement proxy for promise-based connection with worker for review.
Mar 7 2023, 6:07 PM
kamil published D6991: [web-db] implement basic app-worker connection types for review.
Mar 7 2023, 6:06 PM
kamil published D6990: [web-db] add indexedDB config for review.
Mar 7 2023, 6:06 PM
kamil published D6988: [web-db] not include `crypto`, `fs`, and `path` polyfills for workers for review.
Mar 7 2023, 6:06 PM
kamil published D6987: [web-db] add Shared Worker config for review.
Mar 7 2023, 6:05 PM
kamil published D6986: [web-db] add `localForage` types for review.
Mar 7 2023, 6:05 PM
kamil published D6985: [web-db] add `localForage` dependency for review.
Mar 7 2023, 6:04 PM
kamil published D6989: [web-db] copy `sql-wasm.wasm` from node modules to `dist` for review.
Mar 7 2023, 6:04 PM
kamil published D6981: [web-db] add `sql.js` dependency for review.
Mar 7 2023, 6:04 PM
ashoat accepted D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Okay, great – let's ship it!

Mar 7 2023, 4:34 PM
marcin requested review of D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.
Mar 7 2023, 4:29 PM
marcin added a comment to D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

I considered a solution like this, but I was worried that we would need some synchronization. @marcin, can you share some resources that show that NativeAndroidAccessProvider::runTask is "blocking", ie. it guarantees that the lambda passed to it will finish executing before it returns?

(Passing back with question)

Mar 7 2023, 4:29 PM
kuba added a reviewer for D6965: [lib][native] Displaying edited messages from database: ginsu.
Mar 7 2023, 4:11 PM
kuba added a reviewer for D6964: [native] Added new editing messages type to MessageSpecs in C++: ginsu.
Mar 7 2023, 4:11 PM
kuba added a reviewer for D6963: [lib] Added new MessageSpec for editing messages: ginsu.
Mar 7 2023, 4:11 PM
kuba added a reviewer for D6962: [lib][keyserver] Add editing message type to messageTypes: ginsu.
Mar 7 2023, 4:11 PM
varun closed D6960: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.
Mar 7 2023, 4:10 PM
varun committed rCOMM030104821306: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.
Mar 7 2023, 4:10 PM
kuba added a reviewer for D6961: [lib] Create types for message editing: ginsu.
Mar 7 2023, 4:10 PM
kuba added a comment to D6961: [lib] Create types for message editing.

Can you also updates lib/types/messages.js? EDIT ah I see these are in the next diff

In general I personally find it better to introduce types along with code that actually uses them, but many people on the team do what you did here and introduce them in a separate diff. It just makes it much harder to test... eg. your Test Plan doesn't actually test any of the types at all, which means it's quite a poor test plan.

Mar 7 2023, 4:10 PM
varun added a comment to D6960: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.

https://linear.app/comm/issue/ENG-3253/improve-handling-of-rust-node-addon-errors

Mar 7 2023, 4:10 PM
ashoat requested changes to D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

I considered a solution like this, but I was worried that we would need some synchronization. @marcin, can you share some resources that show that NativeAndroidAccessProvider::runTask is "blocking", ie. it guarantees that the lambda passed to it will finish executing before it returns?

Mar 7 2023, 4:07 PM
inka updated the summary of D6978: [web] Add a badge on the Inbox button.
Mar 7 2023, 4:02 PM
inka updated the diff for D6978: [web] Add a badge on the Inbox button.

Make over 100 notifs display as 99+

Mar 7 2023, 4:02 PM
ashoat requested review of D6983: [keyserver] Introduce fetchNativeCookieIDsForUserIDs.
Mar 7 2023, 3:49 PM
ashoat requested review of D6984: [keyserver] Non-identity parts for comparing users.
Mar 7 2023, 3:49 PM
ashoat requested review of D6982: [lib] Add deviceTypes constant for enumerating all valid mobile device types.
Mar 7 2023, 3:48 PM
tomek closed D6967: [native] Fix useIsCurrentUserStaff hook.
Mar 7 2023, 3:12 PM
tomek committed rCOMM3dc46d29f50b: [native] Fix useIsCurrentUserStaff hook.
Mar 7 2023, 3:12 PM
marcin updated the diff for D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Attach thread to JVM when calling CommSecureStore on Android to avoid JNI crash

Mar 7 2023, 2:54 PM
marcin updated subscribers of D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Okay, based on that it sounds like your solution is probably better than mine.

  1. Let's try to do it without macros if possible (it doesn't seem like we've needed them before, but maybe I'm wrong)

There was a period when we were using macros for this purpose: https://phab.comm.dev/D6416. Now it is refactored not to use macros at the cost of implementing this in Android specific directory. Basically if we want to share a C++, which could potentially cause JNI error, between platforms we have to use macros. If we don't want to use macros we have to make sure that methods called in common C++ that are implemented in Android specific directory are wrapped with NativeAndroidAccessible. In this particular case it is the get method of CommSecureStore that has to be wrapped with NativeAndroidAccessible mirroring what has already been done for set method. I talked to @kamil who wrapped set method with NativeAndroidAccessible. He agreed that similar change should have been done for get.

Mar 7 2023, 2:37 PM
ashoat accepted D6980: Revert "[native] Move CommSecureStore::get to main thread to avoid JNI crash".

(Please don't land until D6959 is accepted and ready to land as well)

Mar 7 2023, 2:27 PM
ashoat added inline comments to D6973: [web] Extract from drawer item code that can be reused in community items.
Mar 7 2023, 2:23 PM
ashoat accepted D6967: [native] Fix useIsCurrentUserStaff hook.
Mar 7 2023, 2:07 PM
ashoat added inline comments to D6965: [lib][native] Displaying edited messages from database.
Mar 7 2023, 2:07 PM
ashoat added inline comments to D6966: [lib] Add 'hasBeenEdited' status to messages.
Mar 7 2023, 2:06 PM
ashoat updated subscribers of D6961: [lib] Create types for message editing.

Separately, I think it might be good to add @ginsu to your list of reviewers for this work, given how recently he touched reactions

Mar 7 2023, 2:03 PM
ashoat added a comment to D6961: [lib] Create types for message editing.

Can you also updates lib/types/messages.js? EDIT ah I see these are in the next diff

Mar 7 2023, 2:02 PM
marcin requested review of D6980: Revert "[native] Move CommSecureStore::get to main thread to avoid JNI crash".
Mar 7 2023, 1:53 PM
ashoat accepted D6960: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.
Mar 7 2023, 1:52 PM
ashoat requested changes to D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Okay, based on that it sounds like your solution is probably better than mine.

Mar 7 2023, 1:51 PM
marcin updated the diff for D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Rebase

Mar 7 2023, 1:38 PM
marcin added a reverting change for D6958: [native] Move CommSecureStore::get to main thread to avoid JNI crash: D6980: Revert "[native] Move CommSecureStore::get to main thread to avoid JNI crash".
Mar 7 2023, 1:37 PM
marcin added a reverting change for rCOMM980305ee4c95: [native] Move CommSecureStore::get to main thread to avoid JNI crash: D6980: Revert "[native] Move CommSecureStore::get to main thread to avoid JNI crash".
Mar 7 2023, 1:37 PM
rohan added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
In D6924#207293, @tomek wrote:

On the other hand creating a new table also has some issues from the design's perspective. For example, thread column is a function of messageID because based on message id we can uniquely identify a thread. So this new table isn't e.g. a joining table but instead it depends on just messages table and could be replaced by new columns (is_pinned and pin_timestamp) on it.

I'm not sure, at this point, what is the best design here, but I think that we should spent a little more time figuring it out.

Mar 7 2023, 1:19 PM
inka requested review of D6979: [web] Add a selector for getting the number of unnreads in the selected community.
Mar 7 2023, 1:09 PM
inka requested review of D6978: [web] Add a badge on the Inbox button.
Mar 7 2023, 12:51 PM
marcin added a comment to D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Open to it if there is some benefit over approach in D6958, but would like to see a discussion of tradeoffs.

Mar 7 2023, 12:36 PM
tomek requested changes to D6924: [keyserver] Introduce columns in messages table to support pinned messages.

We persist messageStore.messages and threadStore in SQLite on the native client, and it would probably make the most sense to store pinned_messages in the SQLite threads table instead of introducing a whole new table and set of “ops.” That would introduce inconsistency between the MariaDB and SQLite database… which isn’t the end of the world, but could be avoided if we stored pinned_messages in the threads table?

In which way does it affect the database on the keyserver side?
It's really hard for me to find some advantages of having denormalized pins column on the server. It will make any querying based on pins a lot harder than it should be.

Mar 7 2023, 12:25 PM
inka requested review of D6977: [web] Remove active drawer item highlight.
Mar 7 2023, 12:15 PM
inka requested review of D6976: [web] Use new handlers in communnity drawer.
Mar 7 2023, 12:10 PM
inka requested review of D6975: [web] Add expanded and toggleExpanded to CommunityDrawerItemHandler type.
Mar 7 2023, 12:06 PM
inka requested review of D6974: [web] Add handlers for drawer community items.
Mar 7 2023, 12:00 PM
inka requested review of D6973: [web] Extract from drawer item code that can be reused in community items.
Mar 7 2023, 11:53 AM
tomek requested changes to D5463: [web] Call searchUsers in chat composer.
Mar 7 2023, 11:52 AM
inka requested review of D6972: [web] Make pressing Inbox button reset selected community.
Mar 7 2023, 11:26 AM
inka requested review of D6971: [web] Filter available chats based on the picked community.
Mar 7 2023, 11:21 AM
inka requested review of D6970: [web] Add a selector for fetching picked community in Chat tab.
Mar 7 2023, 11:19 AM
inka requested review of D6969: [web] Add to reducer logic handling community id picked in chat.
Mar 7 2023, 11:17 AM
inka requested review of D6968: [web] Add to redux state picked community in the Chat tab.
Mar 7 2023, 11:14 AM
tomek requested review of D6967: [native] Fix useIsCurrentUserStaff hook.
Mar 7 2023, 10:23 AM
kuba updated the test plan for D6965: [lib][native] Displaying edited messages from database.
Mar 7 2023, 10:01 AM
kuba requested review of D6966: [lib] Add 'hasBeenEdited' status to messages.
Mar 7 2023, 10:00 AM
kuba requested review of D6965: [lib][native] Displaying edited messages from database.
Mar 7 2023, 9:59 AM
kuba requested review of D6964: [native] Added new editing messages type to MessageSpecs in C++.
Mar 7 2023, 9:56 AM
kuba requested review of D6963: [lib] Added new MessageSpec for editing messages.
Mar 7 2023, 9:54 AM
kuba requested review of D6962: [lib][keyserver] Add editing message type to messageTypes.
Mar 7 2023, 9:49 AM
kuba requested review of D6961: [lib] Create types for message editing.
Mar 7 2023, 9:47 AM
bartek accepted D6960: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.

Rust looks OK.

Mar 7 2023, 7:24 AM
varun requested review of D6960: [keyserver] try registerUser if loginUser fails in keyserver logInResponder.
Mar 7 2023, 6:54 AM
ashoat requested changes to D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.

Open to it if there is some benefit over approach in D6958, but would like to see a discussion of tradeoffs.

Mar 7 2023, 12:56 AM
ashoat accepted D6919: Remove relevant notification from notifications center when receiving rescind in NSE.
Mar 7 2023, 12:55 AM
atul committed rCOMM4b0ac9f0ebc4: Revert "[native] Temporary changes for staff release".
Mar 7 2023, 12:27 AM
atul added a reverting change for rCOMM1af4da1bfa68: [native] Temporary changes for staff release: rCOMM4b0ac9f0ebc4: Revert "[native] Temporary changes for staff release".
Mar 7 2023, 12:27 AM
atul committed rCOMMf9612e9ce4f7: [native] `codeVersion` -> 196.
Mar 7 2023, 12:27 AM
atul committed rCOMM1af4da1bfa68: [native] Temporary changes for staff release.
Mar 7 2023, 12:26 AM
atul committed rCOMM446f62170431: [native] `codeVersion` -> 195.
Mar 7 2023, 12:26 AM

Mar 6 2023

ashoat closed D6958: [native] Move CommSecureStore::get to main thread to avoid JNI crash.
Mar 6 2023, 9:25 PM
ashoat committed rCOMM980305ee4c95: [native] Move CommSecureStore::get to main thread to avoid JNI crash.
Mar 6 2023, 9:25 PM
ashoat closed D6957: [native] Fix broken error handling in getUserPublicKey.
Mar 6 2023, 9:25 PM
ashoat committed rCOMM55ea22ac5c60: [native] Fix broken error handling in getUserPublicKey.
Mar 6 2023, 9:25 PM
marcin requested review of D6959: Run everuthing regarding NotificationsCryptoModule with native Android Accessible.
Mar 6 2023, 9:03 PM
atul accepted D6958: [native] Move CommSecureStore::get to main thread to avoid JNI crash.
Mar 6 2023, 8:37 PM
ashoat requested review of D6958: [native] Move CommSecureStore::get to main thread to avoid JNI crash.
Mar 6 2023, 8:12 PM
atul resigned from D6919: Remove relevant notification from notifications center when receiving rescind in NSE.

Don't have a ton of context here.

Mar 6 2023, 7:48 PM
atul accepted D6918: Silence rescinds in NSE.

Looks reasonable to me. Might be good to add someone with more context on notifications as blocking?

Mar 6 2023, 7:41 PM