Page MenuHomePhabricator
Feed Advanced Search

Jul 18 2024

tomek added a comment to D12776: [lib] Generate P2P messages based on actions.

Would probably be a good idea to discuss this in my detail in our 1:1 tomorrow. One tradeoff neither of us has mentioned so far about using a single action for all business logic that generates DMOperations is that it might be debugging a little bit more painful.

Yes, definitelly.

Jul 18 2024, 5:22 AM

Jul 17 2024

tomek requested review of D12786: [lib] Track progress of message processing.
Jul 17 2024, 11:11 AM
tomek updated the diff for D12776: [lib] Generate P2P messages based on actions.

Don't create messages from actions

Jul 17 2024, 9:44 AM
tomek planned changes to D12776: [lib] Generate P2P messages based on actions.
Jul 17 2024, 9:26 AM
tomek updated the diff for D12776: [lib] Generate P2P messages based on actions.

Rebase

Jul 17 2024, 9:26 AM
tomek updated the test plan for D12749: [lib] Stop requiring sequential messages.
Jul 17 2024, 9:25 AM
tomek updated the test plan for D12747: [lib] Enable automatic retries for some messages.
Jul 17 2024, 9:24 AM
tomek updated the test plan for D12746: [lib] Disable automatic retries of all messages and enable manual retries.
Jul 17 2024, 9:23 AM
tomek updated the test plan for D12745: [native][web] Introduce a method fetching messages by ID to SQLiteAPI.
Jul 17 2024, 9:21 AM
tomek updated the test plan for D12744: [native][web] Add a method fetching messages by ID.
Jul 17 2024, 9:21 AM
tomek updated the diff for D12745: [native][web] Introduce a method fetching messages by ID to SQLiteAPI.

Rebase

Jul 17 2024, 8:29 AM
tomek updated the diff for D12744: [native][web] Add a method fetching messages by ID.

Rebase

Jul 17 2024, 8:22 AM
tomek updated the diff for D12743: Add a new field to OutboundP2PMessage.

Rebase

Jul 17 2024, 8:18 AM
tomek updated the diff for D12742: [SQLite] Add a new column to outbound_p2p_messages table.

Rebase

Jul 17 2024, 8:14 AM
tomek added a comment to D12776: [lib] Generate P2P messages based on actions.

Hmm... to me, I think it would be much more simple to have the components generate a DMOp, and then to have a utility function that calls processDMOperation on it, and put the result in a Redux action. That way, we avoid having to support multiple different kinds of actions. What do you think?

Yeah, agree, it's simpler. It's similar to an updated solution I was thinking about. But there are some things we have to figure out:

  1. As of D12780 processDMOperation returns rawMessageInfos and updateInfos. But we also need to generate OutboundP2PMessages (generateMessagesToPeers function from this diff) - we probably should do that as a part of processDMOperation.
  2. We need to know the sending status of messages that aren't automatically retriable. We can have a function that takes OutboundP2PMessages and returns a promise that can be passed to dispatchActionPromise.
  3. Manual retries need IDs of failed messages - that is something relevant only for local messages. But we will need to modify them in a way that allows storing the IDs.

Figured sharing these makes us sure we're on the same page.

Jul 17 2024, 7:41 AM
tomek accepted D12783: [web] Add bindings for inserting into the search table.
Jul 17 2024, 7:03 AM
tomek updated the diff for D12747: [lib] Enable automatic retries for some messages.

Use boolean value

Jul 17 2024, 5:34 AM
tomek updated the diff for D12744: [native][web] Add a method fetching messages by ID.

Rebase

Jul 17 2024, 5:31 AM
tomek updated the diff for D12743: Add a new field to OutboundP2PMessage.

Return boolean value

Jul 17 2024, 5:27 AM
tomek added inline comments to D12747: [lib] Enable automatic retries for some messages.
Jul 17 2024, 5:23 AM
tomek added a comment to D12778: [native] Add SQLiteQueryExecutor code for inserting into the search table.

It might be a good idea to test both insert and update.

Jul 17 2024, 4:49 AM
tomek accepted D12778: [native] Add SQLiteQueryExecutor code for inserting into the search table.
Jul 17 2024, 4:48 AM
tomek accepted D12673: Utilities to idempotently create content and notif sessions.

This diff looks confusing to me. We're introducing a new context PeerOlmSessionCreatorContext but it doesn't look like we're using it.

Jul 17 2024, 4:37 AM

Jul 16 2024

tomek planned changes to D12776: [lib] Generate P2P messages based on actions.
Jul 16 2024, 9:47 AM
tomek added a comment to D12776: [lib] Generate P2P messages based on actions.

Can you provide some more context about this? I don't quite understand why it makes sense to start from an action... my initial thinking was that business logic would construct a DMOperation directly, rather than constructing an action that gets converted into a DMOperation

Jul 16 2024, 8:31 AM
tomek requested review of D12776: [lib] Generate P2P messages based on actions.
Jul 16 2024, 7:42 AM
tomek requested review of D12775: [lib] Fix an invalid condition.
Jul 16 2024, 6:31 AM
tomek requested review of D12749: [lib] Stop requiring sequential messages.
Jul 16 2024, 5:30 AM
tomek requested review of D12747: [lib] Enable automatic retries for some messages.
Jul 16 2024, 5:25 AM
tomek requested review of D12746: [lib] Disable automatic retries of all messages and enable manual retries.
Jul 16 2024, 5:19 AM
tomek requested review of D12745: [native][web] Introduce a method fetching messages by ID to SQLiteAPI.
Jul 16 2024, 5:14 AM
tomek requested review of D12744: [native][web] Add a method fetching messages by ID.
Jul 16 2024, 5:06 AM
tomek updated the diff for D12743: Add a new field to OutboundP2PMessage.

Rename

Jul 16 2024, 4:35 AM
tomek updated the diff for D12742: [SQLite] Add a new column to outbound_p2p_messages table.

Fix indentation

Jul 16 2024, 4:25 AM
tomek added inline comments to D12742: [SQLite] Add a new column to outbound_p2p_messages table.
Jul 16 2024, 4:23 AM
tomek updated the diff for D12742: [SQLite] Add a new column to outbound_p2p_messages table.

Rename column

Jul 16 2024, 4:23 AM
tomek accepted D12760: [SQLite] Factor out SQLiteQueryExecutor::processMessagesResults.
Jul 16 2024, 3:59 AM
tomek accepted D12759: [SQLite] Add target_message generated column and index.

Nice!

Jul 16 2024, 3:45 AM
tomek requested review of D12743: Add a new field to OutboundP2PMessage.
Jul 16 2024, 3:34 AM
tomek accepted D12694: [native](web) Add message_search fts5 table.
Jul 16 2024, 3:20 AM

Jul 15 2024

tomek requested review of D12742: [SQLite] Add a new column to outbound_p2p_messages table.
Jul 15 2024, 3:54 AM
tomek planned changes to D12650: Update extractKeyserverIDFromID so that it returns null for DMs.
Jul 15 2024, 3:41 AM
tomek accepted D12736: [web] add std::optional (C++) <-> undefined (JS) marshalling.

It's great to see these bindings! At some point, we should delete NullableString and NullableInt.

Jul 15 2024, 1:46 AM
tomek accepted D12735: [native] Introduce MessageEntity type alias in more places.
Jul 15 2024, 1:39 AM
tomek added inline comments to D12673: Utilities to idempotently create content and notif sessions.
Jul 15 2024, 1:14 AM

Jul 11 2024

tomek accepted D12726: [web] Allow creating subchannels with no other users.
Jul 11 2024, 5:51 AM
tomek added inline comments to D12650: Update extractKeyserverIDFromID so that it returns null for DMs.
Jul 11 2024, 4:08 AM
tomek added a comment to D12704: [identity] fix issues with capitalized usernames in users and reserved usernames tables.

This diff caused https://linear.app/comm/issue/ENG-8810/unable-to-login - we're reading from the new index but we didn't create records in it for existing users.

Jul 11 2024, 3:37 AM

Jul 10 2024

tomek requested changes to D12673: Utilities to idempotently create content and notif sessions.

I am afraid that there is a vulnerability in this diff. Basically it is possible that two createOlmSessionWithPeer promises will execute concurrently. This might lead to corrupted state. In order to mitigate that I think it is best expose this method as a context. The context would internally keep a map like [(userID, deviceID)] : Promise mapping from particular deviceID and userID to currently executing promise (if any).

Jul 10 2024, 5:01 AM
tomek accepted D12672: Implement utility functions to check if we have content or notif session with device.
Jul 10 2024, 4:56 AM
tomek accepted D12671: Implement notification encryption on web.
Jul 10 2024, 4:49 AM
tomek added a comment to D12667: [web] Fix creating subchannels in chats in GENESIS.

Shouldn't the test plan be expanded?

Jul 10 2024, 4:39 AM
tomek accepted D12715: [web] Don't allow creating subchannels with users the user should not be able to add.
Jul 10 2024, 4:38 AM
tomek accepted D12667: [web] Fix creating subchannels in chats in GENESIS.
Jul 10 2024, 4:25 AM
tomek added inline comments to D12698: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler.
Jul 10 2024, 4:07 AM

Jul 9 2024

tomek updated the diff for D12650: Update extractKeyserverIDFromID so that it returns null for DMs.

Check the IDs in state sync specs

Jul 9 2024, 5:37 AM
tomek accepted D12701: [lib] Sort drawer items alphabetically.
Jul 9 2024, 5:21 AM
tomek accepted D12700: [lib][native][web] Introduce useChildThreadInfosMap so drawer code can see ResolvedThreadInfos.
Jul 9 2024, 5:16 AM
tomek accepted D12699: [lib] Export once at the end of DMOperationSpec files.
Jul 9 2024, 5:06 AM
tomek accepted D12698: [native] Have BackgroundIdentityLoginHandler wait until LogInHandler.
Jul 9 2024, 5:04 AM
tomek accepted D12697: [lib][native] Introduce isLoggedInToIdentityAndAuthoritativeKeyserver.
Jul 9 2024, 5:00 AM
tomek accepted D12696: [lib][native] Introduce isLoggedInToAuthoritativeKeyserver.
Jul 9 2024, 4:57 AM

Jul 8 2024

tomek added inline comments to D12650: Update extractKeyserverIDFromID so that it returns null for DMs.
Jul 8 2024, 6:52 AM
tomek updated the diff for D12650: Update extractKeyserverIDFromID so that it returns null for DMs.

Squash

Jul 8 2024, 6:48 AM
tomek updated the diff for D12650: Update extractKeyserverIDFromID so that it returns null for DMs.

Extract a function

Jul 8 2024, 6:46 AM
tomek accepted D12670: Implement notification encryption on native.
Jul 8 2024, 4:22 AM
tomek accepted D12669: Implement peer notifications session creation as outbound on web and add notifs outbound session creator to OlmAPI.
Jul 8 2024, 4:12 AM
tomek accepted D12668: Implement peer notifications session creation as outbound on native.
Jul 8 2024, 4:00 AM
tomek accepted D12682: [native][web] Stop clearing user input on unknown error.
Jul 8 2024, 1:56 AM
tomek accepted D12681: [lib] Don't query keyserver for empty string from useThreadListSearch.
Jul 8 2024, 1:45 AM
tomek accepted D12680: [lib] Fix crash when pressing message from anonymous author.
Jul 8 2024, 1:44 AM
tomek accepted D12679: [native] Limit BackgroundIdentityLoginHandler to one try per startup.

one try per startup

Why do we want to do this only once? Is there a downside to setting loginAttemptedRef.current to false after the login is done?

Jul 8 2024, 1:43 AM
tomek accepted D12678: [native] Don't bother with keyserver auth in BackgroundIdentityLoginHandler.

we're already auth'd with the authoritative keyserver

Why is it guaranteed?

Jul 8 2024, 1:40 AM

Jul 5 2024

tomek accepted D12674: [lib] Fix missing usernames.
Jul 5 2024, 9:12 AM
tomek published D12674: [lib] Fix missing usernames for review.
Jul 5 2024, 9:11 AM
tomek accepted D12658: [lib] DMOperationSpec for CREATE_THREAD operation.
Jul 5 2024, 5:09 AM
tomek added a comment to D12422: [web][native] Display both thread and community names in the modal.
In D12422#355471, @inka wrote:

"within" is not centered on web (vertically), can we fix this?

Jul 5 2024, 4:36 AM

Jul 4 2024

tomek accepted D12572: Add encryptedNotifUtilsAPI on client platforms with mock encryption..
Jul 4 2024, 5:52 AM

Jul 3 2024

tomek requested review of D12650: Update extractKeyserverIDFromID so that it returns null for DMs.
Jul 3 2024, 6:44 AM

Jul 2 2024

tomek accepted D12634: Bring badgeOnly property to Android notifs.
Jul 2 2024, 2:38 AM
tomek published D12634: Bring badgeOnly property to Android notifs for review.
Jul 2 2024, 2:38 AM

Jun 14 2024

tomek closed D12439: [keyserver] Set thread links code version.
Jun 14 2024, 6:26 AM
tomek committed rCOMM73525457fae2: [keyserver] Set thread links code version (authored by tomek).
[keyserver] Set thread links code version
Jun 14 2024, 6:26 AM
tomek requested review of D12439: [keyserver] Set thread links code version.
Jun 14 2024, 5:51 AM
tomek accepted D12437: [lib][web][native] Send CSAT in getKeyserverOverrideForAnInviteLink.
Jun 14 2024, 5:36 AM
tomek closed D12426: [lib] Extract a file with invite links constants.
Jun 14 2024, 5:27 AM
tomek closed D12425: [lib] Join a thread from an invite link.
Jun 14 2024, 5:27 AM
tomek committed rCOMMd4b47f14bc6a: [lib] Extract a file with invite links constants (authored by tomek).
[lib] Extract a file with invite links constants
Jun 14 2024, 5:27 AM
tomek committed rCOMMd1d99ca235f4: [lib] Join a thread from an invite link (authored by tomek).
[lib] Join a thread from an invite link
Jun 14 2024, 5:27 AM
tomek closed D12423: [lib] Modify the approach to handling invite link acceptance.
Jun 14 2024, 5:27 AM
tomek closed D12424: [lib] Define steps in link acceptance hook.
Jun 14 2024, 5:27 AM
tomek committed rCOMM60115623e0ac: [lib] Define steps in link acceptance hook (authored by tomek).
[lib] Define steps in link acceptance hook
Jun 14 2024, 5:27 AM
tomek committed rCOMM05d347d4e09a: [lib] Modify the approach to handling invite link acceptance (authored by tomek).
[lib] Modify the approach to handling invite link acceptance
Jun 14 2024, 5:27 AM
tomek closed D12422: [web][native] Display both thread and community names in the modal.
Jun 14 2024, 5:27 AM
tomek committed rCOMM56ba1a3c7ec6: [web][native] Display both thread and community names in the modal (authored by tomek).
[web][native] Display both thread and community names in the modal
Jun 14 2024, 5:27 AM
tomek closed D12421: [lib] Rename useAcceptInviteLink return values.
Jun 14 2024, 5:27 AM
tomek committed rCOMM499940f80442: [lib] Rename useAcceptInviteLink return values (authored by tomek).
[lib] Rename useAcceptInviteLink return values
Jun 14 2024, 5:27 AM
tomek closed D12420: [native][web] Navigate to a thread if already joined.
Jun 14 2024, 5:27 AM
tomek closed D12399: [keyserver] Modify thread join responder to handle thread invite links.
Jun 14 2024, 5:27 AM
tomek committed rCOMM03becd6f6984: [native][web] Navigate to a thread if already joined (authored by tomek).
[native][web] Navigate to a thread if already joined
Jun 14 2024, 5:27 AM