Page MenuHomePhorge
Feed All Stories

Mar 28 2023

atul closed D7203: [keyserver] Update `fetchKnownUserInfos` to include `avatar` field in `UserInfo`s.
Mar 28 2023, 7:46 PM
atul committed rCOMMe2deb3803a31: [keyserver] Update `fetchKnownUserInfos` to include `avatar` field in….
Mar 28 2023, 7:46 PM
bartek added inline comments to D7225: [native] Add component to display encrypted images.
Mar 28 2023, 7:44 PM
atul updated the diff for D7203: [keyserver] Update `fetchKnownUserInfos` to include `avatar` field in `UserInfo`s.

rebase and land

Mar 28 2023, 7:43 PM
ashoat added inline comments to D7225: [native] Add component to display encrypted images.
Mar 28 2023, 7:41 PM
ashoat requested changes to D7225: [native] Add component to display encrypted images.
Mar 28 2023, 7:40 PM
ginsu added inline comments to D7192: [web] introduce avatar component.
Mar 28 2023, 7:31 PM
ashoat added inline comments to D7223: [lib] Add utilities for Uint8Array data.
Mar 28 2023, 7:30 PM
kuba updated the diff for D7017: [web] Added displaying 'Labels' to InlineEngagment.

Removed logic from JSX

Mar 28 2023, 7:28 PM
ashoat added inline comments to D7224: [native] Add function to decrypt media file.
Mar 28 2023, 7:25 PM
varun requested review of D7229: [native] more one-time setup for rust-C++ integration.
Mar 28 2023, 7:12 PM
bartek published D7228: [native] Fixes for handling encrypted media messages for review.
Mar 28 2023, 7:07 PM
bartek published D7227: [native] Add encrypted source support in <Multimedia> for review.
Mar 28 2023, 7:07 PM
bartek published D7225: [native] Add component to display encrypted images for review.
Mar 28 2023, 7:06 PM
bartek published D7226: [native] VideoPlaybackModal support for encrypted video for review.
Mar 28 2023, 7:05 PM
bartek published D7223: [lib] Add utilities for Uint8Array data for review.
Mar 28 2023, 7:02 PM
varun updated the diff for D7215: [native] make generateNonce callable from js.

moved additional one-time setup to parent diff

Mar 28 2023, 6:58 PM
bartek published D7224: [native] Add function to decrypt media file for review.
Mar 28 2023, 6:55 PM
varun closed D7221: [native] one-time setup for rust-C++ integration.
Mar 28 2023, 6:50 PM
varun committed rCOMM2937a5c3c83b: [native] one-time setup for rust-C++ integration.
Mar 28 2023, 6:50 PM
varun added inline comments to D7215: [native] make generateNonce callable from js.
Mar 28 2023, 6:41 PM
bartek published D7222: [lib] Add function to calculate padding size for review.
Mar 28 2023, 6:35 PM
varun updated the diff for D7215: [native] make generateNonce callable from js.

address jon's feedback

Mar 28 2023, 6:34 PM
ashoat added inline comments to D7217: [keyserver] Introduce endpoint for deep linking.
Mar 28 2023, 6:31 PM
ashoat added inline comments to D7217: [keyserver] Introduce endpoint for deep linking.
Mar 28 2023, 6:25 PM
ashoat accepted D7065: [native] Added displaying labels to InlineEngagement.
Mar 28 2023, 6:24 PM
ashoat added inline comments to D7215: [native] make generateNonce callable from js.
Mar 28 2023, 6:22 PM
atul closed D7204: [keyserver] Get rid of `ExperimentalWarning`s in `keyserver` logs.
Mar 28 2023, 6:22 PM
atul committed rCOMM599a7bbe3351: [keyserver] Get rid of `ExperimentalWarning`s in `keyserver` logs.
Mar 28 2023, 6:22 PM
ashoat added 1 blocking reviewer(s) for D7201: [web][keyserver] Webpack config and client logic to access opaque-ke2 WASM bindings: atul.
Mar 28 2023, 6:21 PM
ashoat accepted D7220: [keyserver] Update pinnedCount when a message is pinned and unpinned.
Mar 28 2023, 6:21 PM
atul updated the diff for D7204: [keyserver] Get rid of `ExperimentalWarning`s in `keyserver` logs.

rebase and land

Mar 28 2023, 6:09 PM
rohan added a comment to D7175: [lib] Include an isPinned flag in ChatMessageInfoItem.
In D7175#214623, @tomek wrote:

Yeah, that would be more reliable, but also more complicated. We have to decide if it makes sense to spend time on it now. At least we should create a task to track that.

Mar 28 2023, 5:55 PM
varun planned changes to D7215: [native] make generateNonce callable from js.

addressing jon's feedback

Mar 28 2023, 5:47 PM
varun updated the diff for D7215: [native] make generateNonce callable from js.

change counter to promise_id

Mar 28 2023, 5:46 PM
jon closed D7197: [Web] Package opaque-ke-wasm files.
Mar 28 2023, 5:45 PM
jon committed rCOMMac918b353479: [Web] Package opaque-ke-wasm files.
Mar 28 2023, 5:45 PM
jon accepted D7221: [native] one-time setup for rust-C++ integration.
Mar 28 2023, 5:44 PM
jon requested changes to D7215: [native] make generateNonce callable from js.
Mar 28 2023, 5:43 PM
varun requested review of D7221: [native] one-time setup for rust-C++ integration.
Mar 28 2023, 5:29 PM
rohan updated the summary of D7220: [keyserver] Update pinnedCount when a message is pinned and unpinned.
Mar 28 2023, 5:25 PM
rohan updated the diff for D7220: [keyserver] Update pinnedCount when a message is pinned and unpinned.

Move logic from message-creator to thread-updaters

Mar 28 2023, 5:25 PM
varun updated the diff for D7215: [native] make generateNonce callable from js.

remove one-time setup

Mar 28 2023, 5:14 PM
varun added a comment to D7215: [native] make generateNonce callable from js.
In D7215#214574, @jon wrote:

I don't feel strongly about the rust code, which is ephemeral anyway.

Can't comment on the jsi code.

Mar 28 2023, 4:58 PM
ashoat accepted D7219: [keyserver] Include debug fingerprint.
Mar 28 2023, 4:56 PM
varun closed D7214: [native] introduce RustCallback.
Mar 28 2023, 4:55 PM
varun committed rCOMMbdb8e2db3913: [native] introduce RustCallback.
Mar 28 2023, 4:55 PM
varun added inline comments to D7214: [native] introduce RustCallback.
Mar 28 2023, 4:44 PM
varun closed D7213: [services][identity] implement generate_nonce RPC in new client_service..
Mar 28 2023, 4:43 PM
varun committed rCOMM7e3080a6d845: [services][identity] implement generate_nonce RPC in new client_service..
Mar 28 2023, 4:43 PM
tomek updated the diff for D7217: [keyserver] Introduce endpoint for deep linking.

Move import

Mar 28 2023, 4:31 PM
tomek added inline comments to D7217: [keyserver] Introduce endpoint for deep linking.
Mar 28 2023, 4:29 PM
kuba planned changes to D7017: [web] Added displaying 'Labels' to InlineEngagment.
Mar 28 2023, 4:22 PM
kuba updated the diff for D7065: [native] Added displaying labels to InlineEngagement.

Responded to review

Mar 28 2023, 4:20 PM
tomek added a comment to D7175: [lib] Include an isPinned flag in ChatMessageInfoItem.
In D7175#214618, @rohan wrote:
In D7175#213494, @tomek wrote:

So basically, this code handles only the pin icon next to a message on message list. And it's not intended to provide data for pinned list, right?

Yeah, exactly!

The only concern is that we probably don't pin messages in transaction. That means that we can successfully update pin status in the db, but fail to create TOGGLE_PIN message. A lot more reliable approach would be to add a field to a message saying that it is pinned.

You're right, I don't believe we pin the messages in a transaction. So the DB for the message gets updated on pin/unpin (pinned and pin_time), and we separately create a message of type === TOGGLE_PIN. So are you suggesting instead of determining isPinned by the messages, we instead determine isPinned by it's state in the DB (pinned = 1 or pinned = 0)?

Mar 28 2023, 4:16 PM
rohan requested review of D7220: [keyserver] Update pinnedCount when a message is pinned and unpinned.
Mar 28 2023, 4:13 PM
rohan updated the diff for D7175: [lib] Include an isPinned flag in ChatMessageInfoItem.

Simplify isPinned calculation

Mar 28 2023, 4:10 PM
rohan added a comment to D7175: [lib] Include an isPinned flag in ChatMessageInfoItem.
In D7175#213494, @tomek wrote:

So basically, this code handles only the pin icon next to a message on message list. And it's not intended to provide data for pinned list, right?

Yeah, exactly!

The only concern is that we probably don't pin messages in transaction. That means that we can successfully update pin status in the db, but fail to create TOGGLE_PIN message. A lot more reliable approach would be to add a field to a message saying that it is pinned.

You're right, I don't believe we pin the messages in a transaction. So the DB for the message gets updated on pin/unpin (pinned and pin_time), and we separately create a message of type === TOGGLE_PIN. So are you suggesting instead of determining isPinned by the messages, we instead determine isPinned by it's state in the DB (pinned = 1 or pinned = 0)?

Mar 28 2023, 4:09 PM
rohan updated the test plan for D7202: [native] Add pinned_count column to SQLite threads table.
Mar 28 2023, 4:04 PM
rohan added 1 blocking reviewer(s) for D7202: [native] Add pinned_count column to SQLite threads table: atul.
In D7202#214607, @kamil wrote:

Looks good!!

One note to test plan:

Confirm the schema works

  1. git checkout pinned_messages
  2. Build the app from xcode
  3. Connect to the SQLite database and confirm the existence of a pinned_count column

This is not a full test, between steps 2 and 3 you should logout user or make sure it's a fresh install - otherwise, you can not be sure that create_schema was called. Could you verify if it works and amend this to the test plan?

Yeah I had deleted the app and it was the first install, let me fix the test plan to include that so it's clear

Mar 28 2023, 4:03 PM
bartek accepted D7217: [keyserver] Introduce endpoint for deep linking.
Mar 28 2023, 4:03 PM
bartek accepted D7216: [native] Add boilerplate for deep links on iOS.
Mar 28 2023, 4:03 PM
kamil accepted D7202: [native] Add pinned_count column to SQLite threads table.

Looks good!!

Mar 28 2023, 3:58 PM
kuba added inline comments to D7063: [native] Move 'InlineEngagement' styling from 'ComposedMessage' to component.
Mar 28 2023, 3:56 PM
kuba added a comment to D7066: [native] Displaying 'Edit' labels next to edited messages.
In D7066#214557, @inka wrote:

What designs are you using? The designs I found (here) show the label next to the message.
I also see no comments regarding this, in what I guess is the task this diff is addressing (here)

Mar 28 2023, 3:52 PM
kuba added inline comments to D7128: [lib][keyserver] Added new edit_message endpoint.
Mar 28 2023, 3:49 PM
tomek requested review of D7219: [keyserver] Include debug fingerprint.
Mar 28 2023, 3:45 PM
jon added a comment to D7197: [Web] Package opaque-ke-wasm files.

address feedback

Mar 28 2023, 3:42 PM
jon updated the diff for D7197: [Web] Package opaque-ke-wasm files.

Remove index.js stub

Mar 28 2023, 3:41 PM
jon added a comment to D7212: [lib][web][native] Introduce commServicesAccessToken to Redux state.

LGTM, ill defer to react/redux people for correctness

Mar 28 2023, 3:38 PM
jon added a comment to D7215: [native] make generateNonce callable from js.

I don't feel strongly about the rust code, which is ephemeral anyway.

Mar 28 2023, 3:37 PM
jon accepted D7214: [native] introduce RustCallback.

I'm not able to comment on gradle code, but I couldn't find a better way to do this using just cmake + corrosion + cxxbridge

Mar 28 2023, 3:25 PM
jon accepted D7213: [services][identity] implement generate_nonce RPC in new client_service..
Mar 28 2023, 3:13 PM
inka added a comment to D7128: [lib][keyserver] Added new edit_message endpoint.

I think you test plan got cut off

Mar 28 2023, 3:03 PM
inka added a comment to D7066: [native] Displaying 'Edit' labels next to edited messages.

What designs are you using? The designs I found (here) show the label next to the message.
I also see no comments regarding this, in what I guess is the task this diff is addressing (here)

Mar 28 2023, 2:44 PM
ashoat added a comment to D7218: [desktop] Modify the generated native windows notifs module.
  1. Can you separate the codegenned parts and your modifications into separate diffs?
  2. For the codegenned diffs, can you list the exact commands you ran to generate the code?
Mar 28 2023, 2:28 PM
inka added inline comments to D7063: [native] Move 'InlineEngagement' styling from 'ComposedMessage' to component.
Mar 28 2023, 2:19 PM
michal requested review of D7218: [desktop] Modify the generated native windows notifs module.
Mar 28 2023, 1:58 PM
rohan updated the test plan for D7202: [native] Add pinned_count column to SQLite threads table.
Mar 28 2023, 1:27 PM
rohan updated the test plan for D7202: [native] Add pinned_count column to SQLite threads table.
Mar 28 2023, 1:27 PM
rohan added inline comments to D7202: [native] Add pinned_count column to SQLite threads table.
Mar 28 2023, 1:24 PM
rohan updated the diff for D7202: [native] Add pinned_count column to SQLite threads table.

Fix syntax

Mar 28 2023, 1:22 PM
rohan updated the diff for D7202: [native] Add pinned_count column to SQLite threads table.

Add default_value() to sqlite_orm's storage, add default value to schema, and rewrite the check for a pinned_count column to match convention

Mar 28 2023, 1:19 PM
ashoat added inline comments to D7117: [keyserver] Add migration - process messages in our db for search.
Mar 28 2023, 1:15 PM
ashoat added a comment to D7077: [keyserver] Process new messages for search.

Intl.Segmenter seems like the best bet! We can figure out the Flow types... worst case we might need to do something like const OurIntl: OurIntlType = (Intl: any); or something.

Mar 28 2023, 1:10 PM
ashoat accepted D7143: [lib] Function to dispatch edit message action.
Mar 28 2023, 1:01 PM
ashoat accepted D7129: [lib] Added new 'sendEditMessage' action.
Mar 28 2023, 1:00 PM
ashoat added inline comments to D7017: [web] Added displaying 'Labels' to InlineEngagment.
Mar 28 2023, 12:59 PM
ashoat accepted D7141: [keyserver] Display edited message in the sidebar if the source message is edited.

Perfect!

Mar 28 2023, 12:58 PM
ashoat added inline comments to D7140: [lib] Displaying edited content in a pending thread.
Mar 28 2023, 12:51 PM
ashoat accepted D7217: [keyserver] Introduce endpoint for deep linking.
Mar 28 2023, 12:48 PM
ashoat accepted D7216: [native] Add boilerplate for deep links on iOS.
Mar 28 2023, 12:45 PM
ashoat accepted D7117: [keyserver] Add migration - process messages in our db for search.

Accepting with a question. Don't think we need to throw the last result away

Mar 28 2023, 12:45 PM
ashoat requested changes to D7065: [native] Added displaying labels to InlineEngagement.

Just nits, but requesting changes because some of them are non-obvious and I want to confirm it's implemented right before you land :)

Mar 28 2023, 12:41 PM
ashoat accepted D7139: [lib] Added method to call edit_message endpoint.
Mar 28 2023, 12:39 PM
rohan planned changes to D7202: [native] Add pinned_count column to SQLite threads table.
Mar 28 2023, 12:38 PM
ashoat added a comment to D7066: [native] Displaying 'Edit' labels next to edited messages.

Can you amend the Test Plan to include confirming that no warnings like this are presented: https://github.com/CommE2E/comm/blob/2901fdbf2fe11c8564c13fa3fe2513b8a05f5e29/native/chat/message.react.js#L118-L125

Mar 28 2023, 12:38 PM
rohan changed 2 blocking reviewer(s) for D7202: [native] Add pinned_count column to SQLite threads table, added 1: kamil; removed 1: atul.
Mar 28 2023, 12:37 PM
rohan added a comment to D7202: [native] Add pinned_count column to SQLite threads table.
In D7202#214418, @kamil wrote:

In the test plan for the Confirm migration for new clients already with the column works

I'm not entirely sure if we really even need to consider a case where a new client will already have the column besides me in development work, so I can also just remove that check entirely and just add the column. I ran into this inconsistency while working off of my modified schema and running a migration on top of that

This scenario should never happen, if you have not tested code that is not working properly - we added those checks (IF NOT EXISTS, checking if columns are in the table) because there were some problems in the past and we wanted to avoid crashes as soon as possible.

I think this additional check is okay, like in here but if this code fails on your side without this it means something bad is going on.

Looks like the test flow is not fully correct:

  1. Delete the app
  2. Add the schema changes
  3. Install the app (so the db is constructed from the schema)

And that's how this column is added - it's in create_schema but you don't add migration which means the database version is set to 25. Database version is max of migration indexes.

  1. Add the migration

DB version is 25 so migration 26 executes and fails.

  1. Rebuild the app
  2. Confirm that no error for 'duplicate column' is thrown since we detected the column before adding it

When modifying schema you should always modify and test both create_schema and migrations at once. In this test plan you first modified the schema, then built the app and after this, you added migration.

Mar 28 2023, 12:37 PM
ashoat accepted D7214: [native] introduce RustCallback.
Mar 28 2023, 12:36 PM