Page MenuHomePhabricator
Feed All Stories

Mar 23 2023

jon accepted D7150: [web] Scaffolding for opaque-ke-wasm project.

A little out my expertise for best practcies, but looks good

Mar 23 2023, 11:59 AM
ginsu accepted D7152: [keyserver] Introduce `updateUserAvatar` updater and use in `updateUserAvatarResponder`.
Mar 23 2023, 11:58 AM
rohan added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
In D6924#212240, @tomek wrote:
In D6924#211911, @rohan wrote:

Ah I understand now, sorry. Yeah you're right, those are the three things we want to display client side.

  1. Robotext: Will be handled by introducing a new message type and spec
  2. Pin indicator: I think this is the one I'm a little unsure on since I've not begun working on the client-side yet so I wasn't sure on the best way to handle this. I'm not sure if updating RawMessageInfo to support something like RawPinnedMessageInfo and MessageInfo to support PinnedMessageInfo is the best way
  3. A list of pinned messages: D7110 and D7112 should handle this, I can call the endpoint to retrieve all of the pinned messages for a given thread.
  1. Makes sense!
  2. We should spend some time thinking about it as it might affect the backend side. We have a lot of options, but most of them aren't good. Especially, we should consider how are we going to inform client A that a message was pinned on client B.
  3. Here we also have some decisions to make:
    1. Do we plan to fetch pinned messages every time a user opens pinned messages view?
    2. Do we plan to fetch all the messages at once or we're going to fetch them while scrolling?
    3. Do we plan to have a couple of pinned messages on client and fetch more if necessary?
    4. Do we plan to update a view when a new message got pinned on other client?
    5. Do we plan to display pinned messages optimistically (so when a user pins a message and opens the view, should we display a message as pinned before server saves the pin)?

Answering these is crucial because it affects how the API looks like. We probably should prefer simplifying the solution but it still requires being sure what the requirements are.

Mar 23 2023, 11:54 AM
rohan updated the diff for D7112: [keyserver/lib] Set up responders, endpoints, and related functions to fetch all pinned messages.

Make response FetchPinnedMessagesResult mandatory

Mar 23 2023, 11:34 AM
rohan planned changes to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.

Planning changes to avoid putting it on reviewer's queue until the discussion in the comments is resolved

Mar 23 2023, 11:33 AM
rohan updated the diff for D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.

Return an emptyArray of pinnedMessages instead of null if there are none (feedback from D7112)

Mar 23 2023, 11:32 AM
atul added a comment to D5995: [native] clear database when malformation is detected.

Do you think we can get rid of these alerts now? Having to click through the alerts is kind of getting annoying on iOS Simulator.

Mar 23 2023, 11:25 AM
atul updated the test plan for D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`.
Mar 23 2023, 11:02 AM
atul updated the test plan for D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo`.
Mar 23 2023, 10:51 AM
atul published D7157: [keyserver] `JSON.parse()` stringified `avatar` in `fetchLoggedInUserInfo` for review.
Mar 23 2023, 10:51 AM
atul published D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success` for review.
Mar 23 2023, 10:33 AM
jon closed D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 23 2023, 10:28 AM
jon committed rCOMMd57e287befb0: [Identity] Update X3DH protobuf to differiente key requests (authored by jon).
[Identity] Update X3DH protobuf to differiente key requests
Mar 23 2023, 10:28 AM
ginsu updated the diff for D7067: [native] render user avatars in chat screen.

memoize MessageTooltipButtonAvatar

Mar 23 2023, 9:59 AM
ginsu added inline comments to D7067: [native] render user avatars in chat screen.
Mar 23 2023, 9:51 AM
ginsu attached a referenced file: F441961: Screenshot 2023-03-23 at 12.44.09 PM.png.
Mar 23 2023, 9:45 AM
ginsu attached a referenced file: F441960: Screenshot 2023-03-23 at 12.44.26 PM.png.
Mar 23 2023, 9:45 AM
ginsu attached a referenced file: F441956: Screen Recording 2023-03-23 at 12.42.26 PM.mov.
Mar 23 2023, 9:45 AM
ginsu attached a referenced file: F441951: Screen Recording 2023-03-23 at 12.35.42 PM.mov.
Mar 23 2023, 9:45 AM
ginsu attached a referenced file: F441950: Screen Recording 2023-03-23 at 12.35.10 PM.mov.
Mar 23 2023, 9:45 AM
ginsu attached a referenced file: F441949: Screen Recording 2023-03-23 at 12.34.55 PM.mov.
Mar 23 2023, 9:45 AM
ginsu updated the test plan for D7067: [native] render user avatars in chat screen.
Mar 23 2023, 9:45 AM
ginsu updated the diff for D7067: [native] render user avatars in chat screen.

address comments

Mar 23 2023, 9:37 AM
ginsu added inline comments to D7067: [native] render user avatars in chat screen.
Mar 23 2023, 9:12 AM
kuba added inline comments to D7141: [keyserver] Display edited message in the sidebar if the source message is edited.
Mar 23 2023, 8:43 AM
kuba updated the diff for D7141: [keyserver] Display edited message in the sidebar if the source message is edited.

Addressed some of the comments

Mar 23 2023, 8:43 AM
ginsu attached a referenced file: F441840: Screenshot 2023-03-23 at 11.35.18 AM.png.
Mar 23 2023, 8:39 AM
ginsu added inline comments to D7134: [native] update message list header to new design.
Mar 23 2023, 8:39 AM
ginsu added a comment to D7133: [lib] introduce getAvatarForThreadEntity function.

you almost certainly need to be looking at threadInfoFromRawThreadInfo.

Mar 23 2023, 8:39 AM
ginsu attached a referenced file: F441194: Screenshot 2023-03-22 at 7.44.33 PM.png.
Mar 23 2023, 8:38 AM
ginsu added inline comments to D7067: [native] render user avatars in chat screen.
Mar 23 2023, 8:38 AM
jon updated the diff for D7115: [Identity] Update X3DH protobuf to differiente key requests.

Rebase on master

Mar 23 2023, 8:36 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMf895af010fa2: [desktop] `codeVersion` -> v3.0.0 (authored by Michal Gniadek <michal.gniadek@swmansion.com>).
[desktop] `codeVersion` -> v3.0.0
Mar 23 2023, 8:17 AM
rohan added inline comments to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.
Mar 23 2023, 8:16 AM
jon closed D7130: [Identity] Add client device service to identity service.
Mar 23 2023, 8:06 AM
jon committed rCOMMfbcb3b1a9578: [Identity] Add client device service to identity service (authored by jon).
[Identity] Add client device service to identity service
Mar 23 2023, 8:06 AM
jon closed D7116: [Comm-opaque2] Change project name to avoid name clash.
Mar 23 2023, 8:06 AM
jon committed rCOMMce0700acc32b: [Comm-opaque2] Change project name to avoid name clash (authored by jon).
[Comm-opaque2] Change project name to avoid name clash
Mar 23 2023, 8:06 AM
ashoat added inline comments to D7083: Amended Account & Session types..
Mar 23 2023, 8:02 AM
marcin added inline comments to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Mar 23 2023, 7:57 AM
jon added inline comments to D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 23 2023, 7:50 AM
jon added a comment to D7130: [Identity] Add client device service to identity service.

feedback

Mar 23 2023, 7:41 AM
jon updated the diff for D7130: [Identity] Add client device service to identity service.

ran -> run

Mar 23 2023, 7:40 AM
marcin added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 23 2023, 7:24 AM
marcin added inline comments to D7105: Build files set-up for Android 13.
Mar 23 2023, 7:04 AM
rohan attached a referenced file: F441651: Screenshot 2023-03-23 at 9.51.40 AM.png.
Mar 23 2023, 6:58 AM
rohan attached a referenced file: F441649: Screenshot 2023-03-23 at 9.42.33 AM.png.
Mar 23 2023, 6:58 AM
rohan added inline comments to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.
Mar 23 2023, 6:58 AM
marcin updated the diff for D7105: Build files set-up for Android 13.

Important changes for media files permission and ability to launch MainActivity from SplachActivity

Mar 23 2023, 6:56 AM
kamil published D7154: [web-db] get client database store from SQLite for review.
Mar 23 2023, 6:28 AM
kamil published D7153: [web-db] process Draft Store Operations on worker for review.
Mar 23 2023, 6:23 AM
kamil published D7124: [web-db] add unit tests for draft store queries for review.
Mar 23 2023, 6:19 AM
kamil published D7123: [web-db] implement function get all drafts from SQLite for review.
Mar 23 2023, 6:14 AM
kamil added inline comments to D7122: [web-db] implement Draft Store Operations.
Mar 23 2023, 6:00 AM
kamil updated the diff for D7122: [web-db] implement Draft Store Operations.

add import, improve query format

Mar 23 2023, 6:00 AM
ashoat closed D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 23 2023, 5:27 AM
ashoat committed rCOMM115e490e58c1: [native] Migrate from react-native-fast-image to expo-image (authored by ashoat).
[native] Migrate from react-native-fast-image to expo-image
Mar 23 2023, 5:27 AM
kamil requested review of D7121: [web-db] create drafts table in SQLite database.
Mar 23 2023, 5:24 AM
kamil added a comment to D7118: [web-db] add function for parsing SQLite query.

We should not be polluting the global namespace in D7101. You should not be able to use QueryExecResult without importing it unless it's in the Flow lib.

Mar 23 2023, 5:18 AM
kamil updated the diff for D7118: [web-db] add function for parsing SQLite query.

add import

Mar 23 2023, 5:16 AM
ashoat added a comment to D7118: [web-db] add function for parsing SQLite query.

The problem is that we would need to validate each query result manually, going through each column one-by-one and checking the result type. This isn’t something we do today for MySQL queries typically. If we feel strongly about doing input validation for SQL query results we could do with tcomb, but I’m not sure that the effort is worth it.

Mar 23 2023, 5:12 AM
kamil updated the diff for D7102: [web-db] implement function to get database version.

rebase

Mar 23 2023, 5:11 AM
kamil added inline comments to D7101: [web-db] add `sql.js` types.
Mar 23 2023, 5:10 AM
kamil updated the diff for D7101: [web-db] add `sql.js` types.

address code review

Mar 23 2023, 5:04 AM
inka attached a referenced file: F415969: Screenshot 2023-03-07 at 17.00.36.png.
Mar 23 2023, 3:54 AM
inka attached a referenced file: F415968: Screenshot 2023-03-07 at 17.00.23.png.
Mar 23 2023, 3:54 AM
Michal Gniadek <michal.gniadek@swmansion.com> closed D7095: [desktop] Stop checking for a new version after download.
Mar 23 2023, 3:03 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM9acddb4cd20d: [desktop] Stop checking for a new version after download (authored by Michal Gniadek <michal.gniadek@swmansion.com>).
[desktop] Stop checking for a new version after download
Mar 23 2023, 3:03 AM
Michal Gniadek <michal.gniadek@swmansion.com> closed D7094: [keyserver] Send updateBadgeCount notifs to macOS.
Mar 23 2023, 3:01 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM725b8786a3f1: [keyserver] Send updateBadgeCount notifs to macOS (authored by Michal Gniadek <michal.gniadek@swmansion.com>).
[keyserver] Send updateBadgeCount notifs to macOS
Mar 23 2023, 3:01 AM
tomek requested changes to D7112: [keyserver/lib] Set up responders, endpoints, and related functions to fetch all pinned messages.
Mar 23 2023, 2:58 AM
tomek added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
In D6924#211911, @rohan wrote:
In D6924#211756, @tomek wrote:

It seems like I wasn't clear enough in my comment, so let me explain it differently. Correct me in any place where I'm wrong. So on the client side we would want to display three things:

  1. A robotext message in a thread telling that a message was pinned
  2. A pin indicator next to a message
  3. A list of pinned messages

As far as I understand, what you're describing handles only the 1st point. How do we plan to handle 2nd and 3rd?

Ah I understand now, sorry. Yeah you're right, those are the three things we want to display client side.

  1. Robotext: Will be handled by introducing a new message type and spec
  2. Pin indicator: I think this is the one I'm a little unsure on since I've not begun working on the client-side yet so I wasn't sure on the best way to handle this. I'm not sure if updating RawMessageInfo to support something like RawPinnedMessageInfo and MessageInfo to support PinnedMessageInfo is the best way
  3. A list of pinned messages: D7110 and D7112 should handle this, I can call the endpoint to retrieve all of the pinned messages for a given thread.
Mar 23 2023, 2:48 AM
michal updated the diff for D7094: [keyserver] Send updateBadgeCount notifs to macOS.

Actually remove the remaining "only for flow" lines, not sure why this didn't commit before...

Mar 23 2023, 2:43 AM
tomek added a comment to D7118: [web-db] add function for parsing SQLite query.

I don't think doing input validation for SQL results is necessary – the any is fine here. It would probably have been more clear how / why you're using any if these utility functions were introduced in the same diff where they are used.

Mar 23 2023, 1:40 AM

Mar 22 2023

atul published D7152: [keyserver] Introduce `updateUserAvatar` updater and use in `updateUserAvatarResponder` for review.
Mar 22 2023, 11:21 PM
bartek attached a referenced file: F441275: Screenshot 2023-03-23 at 06.34.25.png.
Mar 22 2023, 11:10 PM
bartek accepted D7151: [native] Migrate from react-native-fast-image to expo-image.

It seems to work with all data URIs too!

Mar 22 2023, 11:10 PM
atul added a comment to D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.

[will add screenshot shortly]

Mar 22 2023, 10:09 PM
bartek added a comment to D7151: [native] Migrate from react-native-fast-image to expo-image.

Just tested and it looks like this solves rendering SVG data URIs for us!! I haven't tested other types, but PNG, JPEG, and SVG are all listed as supported in the docs. Thanks @bartek for the tip! This is way better than what I had planned to do on Android.

Mar 22 2023, 9:49 PM
atul closed D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.
Mar 22 2023, 9:22 PM
atul committed rCOMM58a87534b387: [lib] Introduce `updateUserAvatar` to `user-actions` (authored by atul).
[lib] Introduce `updateUserAvatar` to `user-actions`
Mar 22 2023, 9:22 PM
atul updated the diff for D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.

rebase before landing

Mar 22 2023, 9:19 PM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 22 2023, 9:16 PM
ashoat added a comment to D7151: [native] Migrate from react-native-fast-image to expo-image.

Just tested and it looks like this solves rendering SVG data URIs for us!! I haven't tested other types, but PNG, JPEG, and SVG are all listed as supported in the docs. Thanks @bartek for the tip! This is way better than what I had planned to do on Android.

Mar 22 2023, 9:15 PM
ashoat added a comment to D7151: [native] Migrate from react-native-fast-image to expo-image.

Done testing!! I think this is safe to land. I haven't tested blurhash or SVG / data URI support yet, but those are things that react-native-fast-image can't handle today anyways

Mar 22 2023, 8:29 PM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 22 2023, 8:28 PM
varun added inline comments to D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 22 2023, 7:15 PM
varun accepted D7116: [Comm-opaque2] Change project name to avoid name clash.
Mar 22 2023, 7:13 PM
varun accepted D7149: [web] Add grpc-web@1.4.2.
Mar 22 2023, 6:26 PM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 22 2023, 5:58 PM
ashoat requested review of D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 22 2023, 5:28 PM
ashoat requested review of D7149: [web] Add grpc-web@1.4.2.
Mar 22 2023, 4:42 PM
ashoat requested review of D7150: [web] Scaffolding for opaque-ke-wasm project.
Mar 22 2023, 4:42 PM
ashoat requested changes to D7067: [native] render user avatars in chat screen.

That general approach looks great!! Great work figuring this out.

Mar 22 2023, 4:09 PM
ashoat accepted D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 22 2023, 3:51 PM
ginsu attached a referenced file: F441060: Screen Recording 2023-03-22 at 6.28.52 PM.mov.
Mar 22 2023, 3:43 PM
ginsu attached a referenced file: F441058: Screenshot 2023-03-21 at 5.31.04 PM.png.
Mar 22 2023, 3:43 PM
ginsu added a comment to D7067: [native] render user avatars in chat screen.

My last proposed solution to fix the chat bubble poking out of the message box is to make the message box a flex container and align the inner text messages (either flex-end or flex-start) depending on if the message came from the viewer or not. This solution is very similar to how we position the InlineEngagement component, which inspired me to implement the solution this way.

Mar 22 2023, 3:43 PM
rohan updated the diff for D6924: [keyserver] Introduce columns in messages table to support pinned messages.

Create compound index, set my DB version back to 20 and re-run the migration to confirm no errors are present, and use EXPLAIN on the query in D7110 to confirm that the query uses the newly created thread_pinned index

Mar 22 2023, 3:42 PM
ginsu updated the diff for D7067: [native] render user avatars in chat screen.

add feature flags and fix poking chat bubble

Mar 22 2023, 3:42 PM