Page MenuHomePhorge
Feed All Stories

Mar 23 2023

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, 12:18 PM
kamil updated the diff for D7118: [web-db] add function for parsing SQLite query.

add import

Mar 23 2023, 12:16 PM
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, 12:12 PM
kamil updated the diff for D7102: [web-db] implement function to get database version.

rebase

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

address code review

Mar 23 2023, 12:04 PM
inka attached a referenced file: F415969: Screenshot 2023-03-07 at 17.00.36.png.
Mar 23 2023, 10:54 AM
inka attached a referenced file: F415968: Screenshot 2023-03-07 at 17.00.23.png.
Mar 23 2023, 10:54 AM
Restricted Repository Identity closed D7095: [desktop] Stop checking for a new version after download.
Mar 23 2023, 10:03 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM9acddb4cd20d: [desktop] Stop checking for a new version after download.
Mar 23 2023, 10:03 AM
Restricted Repository Identity closed D7094: [keyserver] Send updateBadgeCount notifs to macOS.
Mar 23 2023, 10:01 AM
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM725b8786a3f1: [keyserver] Send updateBadgeCount notifs to macOS.
Mar 23 2023, 10:01 AM
tomek requested changes to D7112: [keyserver/lib] Set up responders, endpoints, and related functions to fetch all pinned messages.
Mar 23 2023, 9: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, 9: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, 9: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, 8:40 AM
atul published D7152: [keyserver] Introduce `updateUserAvatar` updater and use in `updateUserAvatarResponder` for review.
Mar 23 2023, 6:21 AM
bartek attached a referenced file: F441275: Screenshot 2023-03-23 at 06.34.25.png.
Mar 23 2023, 6:10 AM
bartek accepted D7151: [native] Migrate from react-native-fast-image to expo-image.

It seems to work with all data URIs too!

Mar 23 2023, 6:10 AM
atul added a comment to D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.

[will add screenshot shortly]

Mar 23 2023, 5:09 AM
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 23 2023, 4:49 AM
atul closed D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.
Mar 23 2023, 4:22 AM
atul committed rCOMM58a87534b387: [lib] Introduce `updateUserAvatar` to `user-actions`.
Mar 23 2023, 4:22 AM
atul updated the diff for D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.

rebase before landing

Mar 23 2023, 4:19 AM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 23 2023, 4:16 AM
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 23 2023, 4:15 AM
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 23 2023, 3:29 AM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 23 2023, 3:28 AM
varun added inline comments to D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 23 2023, 2:15 AM
varun accepted D7116: [Comm-opaque2] Change project name to avoid name clash.
Mar 23 2023, 2:13 AM
varun accepted D7149: [web] Add grpc-web@1.4.2.
Mar 23 2023, 1:26 AM
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 23 2023, 12:58 AM
ashoat requested review of D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 23 2023, 12:28 AM

Mar 22 2023

ashoat requested review of D7149: [web] Add grpc-web@1.4.2.
Mar 22 2023, 11:42 PM
ashoat requested review of D7150: [web] Scaffolding for opaque-ke-wasm project.
Mar 22 2023, 11: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, 11:09 PM
ashoat accepted D7115: [Identity] Update X3DH protobuf to differiente key requests.
Mar 22 2023, 10:51 PM
ginsu attached a referenced file: F441060: Screen Recording 2023-03-22 at 6.28.52 PM.mov.
Mar 22 2023, 10:43 PM
ginsu attached a referenced file: F441058: Screenshot 2023-03-21 at 5.31.04 PM.png.
Mar 22 2023, 10: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, 10: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, 10: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, 10:42 PM
ashoat added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 22 2023, 10:41 PM
ashoat requested changes to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 22 2023, 10:37 PM
ashoat added inline comments to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
Mar 22 2023, 10:27 PM
ashoat added inline comments to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.
Mar 22 2023, 10:26 PM
ashoat accepted D7145: [keyserver] Adding edit_message to the sidebar thread.
Mar 22 2023, 10:25 PM
ashoat accepted D7144: [lib] Added edit message action reducer.
Mar 22 2023, 10:22 PM
ashoat added inline comments to D7129: [lib] Added new 'sendEditMessage' action.
Mar 22 2023, 10:16 PM
ashoat added inline comments to D7141: [keyserver] Display edited message in the sidebar if the source message is edited.
Mar 22 2023, 10:15 PM
ashoat requested changes to D7143: [lib] Function to dispatch edit message action.
Mar 22 2023, 10:14 PM
ashoat added inline comments to D7140: [lib] Displaying edited content in a pending thread.
Mar 22 2023, 10:11 PM
ashoat requested changes to D7141: [keyserver] Display edited message in the sidebar if the source message is edited.
Mar 22 2023, 10:08 PM
ashoat requested changes to D7139: [lib] Added method to call edit_message endpoint.
Mar 22 2023, 10:02 PM
ashoat requested changes to D7121: [web-db] create drafts table in SQLite database.
Mar 22 2023, 9:59 PM
ashoat requested changes 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 22 2023, 9:53 PM
ashoat requested changes to D7101: [web-db] add `sql.js` types.
Mar 22 2023, 9:49 PM
ashoat added a comment to D6965: [lib][native] Displaying edited messages from database.

We can consider preventing users from sending empty edit messages.

Mar 22 2023, 9:46 PM
ashoat added a comment to D7094: [keyserver] Send updateBadgeCount notifs to macOS.

This diff seems to call getAPNsNotificationTopic with two parameters, but the version of that function in master only takes one parameter. Can you please update this diff's dependencies so I can see the rest of your stack? Please always set diff dependencies!

There's no stack for this diff, I'm calling getAPNsNotificationTopic with one argument, it's just an object with two fields.

Mar 22 2023, 9:08 PM
ashoat added inline comments to D6961: [lib] Create types for message editing.
Mar 22 2023, 9:07 PM
ashoat added a comment 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 22 2023, 9:04 PM
ashoat requested changes to D7117: [keyserver] Add migration - process messages in our db for search.
Mar 22 2023, 9:01 PM
varun accepted D7130: [Identity] Add client device service to identity service.

nice! just one nit

Mar 22 2023, 8:58 PM
ashoat accepted D7138: [native] render the rest of the thread avatars.
Mar 22 2023, 8:56 PM
varun accepted D7115: [Identity] Update X3DH protobuf to differiente key requests.

just a couple nits

Mar 22 2023, 8:54 PM
ashoat requested changes to D7137: [native] render thread avatars for parent/child threads in thread settings.
Mar 22 2023, 8:51 PM
ginsu closed D7131: [lib] introduce getDefaultAvatar helper function.
Mar 22 2023, 8:23 PM
ginsu committed rCOMM9ea6a06baee7: [lib] introduce getDefaultAvatar helper function.
Mar 22 2023, 8:23 PM
kuba updated the test plan for D7066: [native] Displaying 'Edit' labels next to edited messages.
Mar 22 2023, 8:09 PM
ashoat requested changes to D7136: [native] render thread avatars in community drawer.

You should definitely have included @inka on this review – she is by far the expert on this code

Mar 22 2023, 7:42 PM
ashoat accepted D7135: [native] render thread avatar in CHANNEL AVATAR thread settings section.
Mar 22 2023, 7:29 PM
ashoat requested changes to D7134: [native] update message list header to new design.
Mar 22 2023, 7:27 PM
ashoat requested changes to D7133: [lib] introduce getAvatarForThreadEntity function.

I am skeptical that you need to be touching entity-text.js or entity-helpers.js at all. Can you explain what updates you think you need to the EntityText framework and why?

Mar 22 2023, 7:22 PM
ashoat accepted D7131: [lib] introduce getDefaultAvatar helper function.
Mar 22 2023, 7:13 PM
ashoat requested changes to D7132: [lib] introduce useGetAvatarForThread hook.

Mostly questions

Mar 22 2023, 7:12 PM
ashoat added inline comments to D7129: [lib] Added new 'sendEditMessage' action.
Mar 22 2023, 6:59 PM
ashoat accepted D7127: [lib][keyserver] Introduce new threadPermissions types for editing messages.
Mar 22 2023, 6:46 PM
jon updated the diff for D7130: [Identity] Add client device service to identity service.

rebase on master

Mar 22 2023, 6:43 PM
jon updated the diff for D7116: [Comm-opaque2] Change project name to avoid name clash.

Rebase on master

Mar 22 2023, 6:43 PM
jon added a comment to D7130: [Identity] Add client device service to identity service.

Address feedback

Mar 22 2023, 6:42 PM
ashoat requested changes to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..

Just a question

Mar 22 2023, 6:42 PM
jon updated the diff for D7130: [Identity] Add client device service to identity service.

svc -> keyserver_service

Mar 22 2023, 6:42 PM
bartek added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 22 2023, 6:41 PM
ashoat accepted D7105: Build files set-up for Android 13.

Please update native/expo-modules/aes-crypto/android/build.gradle before landing!

Mar 22 2023, 6:39 PM
ashoat added inline comments to D7104: [web-db] add unit tests for worker crypto utils.
Mar 22 2023, 6:37 PM
ashoat accepted D7122: [web-db] implement Draft Store Operations.
Mar 22 2023, 6:36 PM
ashoat accepted D7126: [lib] Introduce `updateUserAvatar` to `user-actions`.
Mar 22 2023, 6:32 PM
ashoat requested changes to D7106: Native Java code to request notifications permissions from JS on Android 13.
Mar 22 2023, 6:28 PM
rohan attached a referenced file: F440923: Screenshot 2023-03-22 at 2.22.31 PM.png.
Mar 22 2023, 6:24 PM
rohan updated the diff for D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.

Use contentStringForMediaArray and confirm robotext is still as expected

Mar 22 2023, 6:24 PM
ashoat requested changes to D7125: Use new notifications permission API to modify push notifs settings alerts on Android 13.
Mar 22 2023, 6:23 PM
rohan added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 22 2023, 6:14 PM
jon added inline comments to D7130: [Identity] Add client device service to identity service.
Mar 22 2023, 5:48 PM
bartek added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 22 2023, 5:45 PM
bartek accepted D7130: [Identity] Add client device service to identity service.
Mar 22 2023, 5:16 PM
tomek closed D7147: [server] Update assetlinks file.
Mar 22 2023, 5:06 PM
tomek committed rCOMM2bfa6edef031: [server] Update assetlinks file.
Mar 22 2023, 5:06 PM
tomek closed D7146: [server] Update AASA file so that we prove to iOS that the domain belongs to us.
Mar 22 2023, 5:06 PM
tomek committed rCOMM825ba1f0e005: [server] Update AASA file so that we prove to iOS that the domain belongs to us.
Mar 22 2023, 5:05 PM
rohan added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Mar 22 2023, 5:01 PM