Page MenuHomePhabricator
Feed Advanced Search

Aug 2 2024

tomek requested review of D12956: [lib] Apply the queued updates.
Aug 2 2024, 1:51 AM
tomek accepted D12916: [native] refresh device token after receiving message from Tunnelbroker.
Aug 2 2024, 1:42 AM
tomek requested changes to D12915: [web][desktop] refresh device token after receiving message from Tunnelbroker.

I'm not sure about the logic here. PushNotificationsHandler contains an effect reacting to prevLocalToken.current && !localToken condition. It also renders useCreateDesktopPushSubscription which contains an effect reacting to the same condition. Can't we have a single effect doing all the work?

Aug 2 2024, 1:40 AM
tomek added inline comments to D12936: [lib] Create a new redux field to store the operations.
Aug 2 2024, 12:49 AM

Aug 1 2024

tomek added a reviewer for D12809: [lib] add new selector and function to get own user's keyserver device ID: kamil.
Aug 1 2024, 8:12 AM
tomek added inline comments to D12871: [lib] DMOperationSpec for leave thread operation.
Aug 1 2024, 8:10 AM
tomek updated the diff for D12954: [lib] Create an operation pruner.

Delay pruning

Aug 1 2024, 7:50 AM
tomek updated the diff for D12954: [lib] Create an operation pruner.

Generate a timestamp when putting operations to the queue

Aug 1 2024, 6:14 AM
tomek planned changes to D12954: [lib] Create an operation pruner.
In D12954#366380, @inka wrote:

I'm worried about a scenario where the user doesn't open the app for a couple of days, and when they do all ops are suddenly deleted before they can be processed. Are we protected against that somehow?

Aug 1 2024, 6:08 AM
tomek updated the diff for D12921: [lib] Handle replies count.

Rebase

Aug 1 2024, 5:57 AM
tomek updated the diff for D12881: [lib] DMOperationSpec for change thread settings operation.

Revert validators change

Aug 1 2024, 5:56 AM
tomek updated the diff for D12881: [lib] DMOperationSpec for change thread settings operation.

Set unread status and create a custom changes field

Aug 1 2024, 5:53 AM
tomek planned changes to D12881: [lib] DMOperationSpec for change thread settings operation.
Aug 1 2024, 5:40 AM
tomek added a comment to D12921: [lib] Handle replies count.

Agree that it would be a lot better to extract the logic from the specs. I'm going to think about it more but at this point, it seems hard because:

  1. Updating the replies count happens through an update. If we extract the logic from the specs, we would need to inspect returned updates and modify or create a new one with the replies count update.
  2. Messages can be returned both in rawMessageInfos and as a part of some updateInfos.

There are some possible ideas, e.g.

  1. We can consider returning something different than rawMessageInfos and updateInfos from the specs, so that it's easier to know if the count should be updated.
  2. We can start updating the count using a separate action and return a new count next to rawMessageInfos and updateInfos.
  3. We can modify reducers to compute the replies count based on new messages automatically.

Each of these could be complicated, and it seems they mostly move complexity from one place to another.

Aug 1 2024, 5:38 AM
tomek added inline comments to D12872: [lib] DMOperationSpec for remove members operation.
Aug 1 2024, 5:17 AM
tomek added inline comments to D12871: [lib] DMOperationSpec for leave thread operation.
Aug 1 2024, 5:09 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Create a message even when a user is already a member

Aug 1 2024, 5:07 AM
tomek updated the diff for D12914: [lib] Allow creating thick threads from existing threads.

Add community field

Aug 1 2024, 4:32 AM
tomek added a comment to D12914: [lib] Allow creating thick threads from existing threads.
In D12914#366368, @inka wrote:

What about +community?: ?string, field?

I got a little confused here. But I think that communities are always thin because they live on keyservers. So for a thick thread, it is not possible to assign a community. Am I right?

createThickRawThreadInfo returns MutableThickRawThreadInfo which includes a community field. I am also confused why that is, but it is types as +community?: ?string,, so I am assuming it can hold some value. If so, we should be able to set it

Aug 1 2024, 4:24 AM
tomek accepted D12952: [lib] Remove usernames sent by the keyserver and use reservedUserIdentifiers.
Aug 1 2024, 1:23 AM
tomek accepted D12882: Implement sending E2EE notification from the client.
Aug 1 2024, 1:14 AM

Jul 31 2024

tomek requested review of D12954: [lib] Create an operation pruner.
Jul 31 2024, 11:07 AM
tomek added a comment to D12948: [lib] Add a function to DM operations spec checking if an operation can be applied.

I had previously suggested implemented a solution to this based on a tcomb validator. We'll need to specify IDs that have to be checked for collision again certain SQLite tables, and I was planning on using a tcomb validator approach for that. It seems like checking IDs for existence in certain SQLite tables is a very similar problem, and ought to be solved in a similar way.

Jul 31 2024, 10:10 AM
tomek added inline comments to D12936: [lib] Create a new redux field to store the operations.
Jul 31 2024, 10:01 AM
tomek added a comment to D12881: [lib] DMOperationSpec for change thread settings operation.
In D12881#366124, @inka wrote:

Should we set the unread status?

Jul 31 2024, 10:00 AM
tomek planned changes to D12870: [lib] DMOperationSpec for join thread operation.
Jul 31 2024, 9:52 AM
tomek added inline comments to D12870: [lib] DMOperationSpec for join thread operation.
Jul 31 2024, 9:48 AM
tomek added inline comments to D12835: [lib] DMOperationSpec for add members operation.
Jul 31 2024, 9:39 AM
tomek added a comment to D12914: [lib] Allow creating thick threads from existing threads.

What about +community?: ?string, field?

I got a little confused here. But I think that communities are always thin because they live on keyservers. So for a thick thread, it is not possible to assign a community. Am I right?

Jul 31 2024, 9:34 AM
tomek updated subscribers of D12914: [lib] Allow creating thick threads from existing threads.
Jul 31 2024, 9:24 AM
tomek accepted D12947: [native] Rename Nux Tips Overlay (and simplify types).
Jul 31 2024, 6:16 AM
tomek accepted D12942: [native] Remove irrelevant code from nux tips overlay.
Jul 31 2024, 6:10 AM
tomek accepted D12941: [native] Copy tooltip.
In D12941#365887, @inka wrote:

Rename file - I am not sure how to name this, but this seems better

Jul 31 2024, 6:04 AM
tomek requested changes to D12882: Implement sending E2EE notification from the client.
Jul 31 2024, 5:48 AM
tomek resigned from D12951: [Tunnelbroker] invalidate bad FCM tokens.

About option 1 vs option 2: I think it is much worse if we have a false-negative token invalidation than a false-positive.
False-positive means that we think that a token is invalid when it is valid. In this case, we would ask a client to send a new token. If we have a good validation of notifications on Tunnelbroker, then it is unlikely to cause serious issues.
False-negative means that we think that a token is valid when it isn't. We won't be able to send any notif and don't have a way of recovering from it.

Jul 31 2024, 5:28 AM
tomek planned changes to D12914: [lib] Allow creating thick threads from existing threads.
Jul 31 2024, 2:49 AM

Jul 30 2024

tomek requested review of D12949: [lib] Create a new action and a reducer that queue the operations.
Jul 30 2024, 10:15 AM
tomek updated the diff for D12948: [lib] Add a function to DM operations spec checking if an operation can be applied.

Change the API

Jul 30 2024, 9:39 AM
tomek requested review of D12948: [lib] Add a function to DM operations spec checking if an operation can be applied.
Jul 30 2024, 9:32 AM
tomek requested review of D12936: [lib] Create a new redux field to store the operations.
Jul 30 2024, 3:23 AM
tomek updated the diff for D12881: [lib] DMOperationSpec for change thread settings operation.

Fix the types

Jul 30 2024, 3:00 AM
tomek accepted D12912: [lib] handle `BadDeviceToken` message.
Jul 30 2024, 2:22 AM
tomek accepted D12887: [lib] update `SET_DEVICE_TOKEN_STARTED` payload.
Jul 30 2024, 1:54 AM

Jul 29 2024

tomek requested review of D12921: [lib] Handle replies count.
Jul 29 2024, 9:04 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Fix imports

Jul 29 2024, 8:53 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Fix imports

Jul 29 2024, 8:52 AM
tomek updated the diff for D12914: [lib] Allow creating thick threads from existing threads.

Fix imports

Jul 29 2024, 8:48 AM
tomek added inline comments to D12882: Implement sending E2EE notification from the client.
Jul 29 2024, 7:49 AM
tomek added inline comments to D12881: [lib] DMOperationSpec for change thread settings operation.
Jul 29 2024, 7:33 AM
tomek updated the diff for D12881: [lib] DMOperationSpec for change thread settings operation.

Extract common logic

Jul 29 2024, 7:33 AM
tomek added inline comments to D12914: [lib] Allow creating thick threads from existing threads.
Jul 29 2024, 7:16 AM
tomek added inline comments to D12872: [lib] DMOperationSpec for remove members operation.
Jul 29 2024, 7:14 AM
tomek updated the diff for D12872: [lib] DMOperationSpec for remove members operation.

Correctly handle sidebars

Jul 29 2024, 6:46 AM
tomek added inline comments to D12871: [lib] DMOperationSpec for leave thread operation.
Jul 29 2024, 6:33 AM
tomek added inline comments to D12871: [lib] DMOperationSpec for leave thread operation.
Jul 29 2024, 6:32 AM
tomek updated the diff for D12871: [lib] DMOperationSpec for leave thread operation.

Delete sidebar only if it doesn't have a parent

Jul 29 2024, 6:29 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Add all the thread to the utils

Jul 29 2024, 6:03 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Add all threads to utils

Jul 29 2024, 6:00 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Add a new member

Jul 29 2024, 5:13 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Add new users

Jul 29 2024, 5:10 AM
tomek added inline comments to D12870: [lib] DMOperationSpec for join thread operation.
Jul 29 2024, 5:06 AM
tomek added inline comments to D12870: [lib] DMOperationSpec for join thread operation.
Jul 29 2024, 4:57 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Create a new thread

Jul 29 2024, 4:57 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Include new messages in thread creation join update

Jul 29 2024, 4:44 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Update unread status

Jul 29 2024, 4:38 AM
tomek added inline comments to D12835: [lib] DMOperationSpec for add members operation.
Jul 29 2024, 4:35 AM
tomek updated the summary of D12835: [lib] DMOperationSpec for add members operation.
Jul 29 2024, 4:33 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Create new thread

Jul 29 2024, 4:33 AM
tomek updated the diff for D12914: [lib] Allow creating thick threads from existing threads.

Create a validator

Jul 29 2024, 4:21 AM
tomek requested review of D12914: [lib] Allow creating thick threads from existing threads.
Jul 29 2024, 4:13 AM
tomek accepted D12913: [CryptoModule] remove `decryptSequential` API.
Jul 29 2024, 3:56 AM
tomek accepted D12749: [lib] Stop requiring sequential messages.
Jul 29 2024, 3:55 AM
tomek accepted D12907: [native] linked devices component.

Looks ok to me, but we need to make sure @ashoat will take a look before landing

Jul 29 2024, 12:41 AM

Jul 26 2024

tomek closed D12786: [lib] Track progress of message processing.
Jul 26 2024, 8:42 AM
tomek committed rCOMMd0b9971793b3: [lib] Track progress of message processing (authored by tomek).
[lib] Track progress of message processing
Jul 26 2024, 8:42 AM
tomek closed D12776: [lib] Generate P2P messages based on actions.
Jul 26 2024, 8:42 AM
tomek committed rCOMMda886a2548bb: [lib] Generate P2P messages based on actions (authored by tomek).
[lib] Generate P2P messages based on actions
Jul 26 2024, 8:42 AM
tomek updated the diff for D12786: [lib] Track progress of message processing.

Use UUID v4

Jul 26 2024, 6:50 AM
tomek updated the diff for D12786: [lib] Track progress of message processing.

Rebase and improve naming

Jul 26 2024, 6:48 AM
tomek added a comment to D12786: [lib] Track progress of message processing.

I think the usage of if and dmOpID can be improved and more descriptive, this might look confusing as we have plenty IDs all over the codebase - but I don't have idea about better ones

Jul 26 2024, 6:48 AM
tomek updated the diff for D12776: [lib] Generate P2P messages based on actions.

Fix device ID filtering

Jul 26 2024, 6:33 AM
tomek added inline comments to D12776: [lib] Generate P2P messages based on actions.
Jul 26 2024, 6:31 AM
tomek updated the diff for D12776: [lib] Generate P2P messages based on actions.

Filter out this device ID

Jul 26 2024, 6:31 AM
tomek foisted D12749: [lib] Stop requiring sequential messages upon kamil.
Jul 26 2024, 6:12 AM
tomek closed D12807: [lib] DMOperationSpec for edit operation.
Jul 26 2024, 5:22 AM
tomek committed rCOMMf95e8973dae8: [lib] DMOperationSpec for edit operation (authored by tomek).
[lib] DMOperationSpec for edit operation
Jul 26 2024, 5:22 AM
tomek closed D12806: [lib] DMOperationSpec for reaction operation.
Jul 26 2024, 5:22 AM
tomek committed rCOMM20323899bb24: [lib] DMOperationSpec for reaction operation (authored by tomek).
[lib] DMOperationSpec for reaction operation
Jul 26 2024, 5:22 AM
tomek updated the diff for D12881: [lib] DMOperationSpec for change thread settings operation.

Rename

Jul 26 2024, 4:38 AM
tomek updated the diff for D12872: [lib] DMOperationSpec for remove members operation.

Rename

Jul 26 2024, 4:36 AM
tomek updated the diff for D12871: [lib] DMOperationSpec for leave thread operation.

Rename

Jul 26 2024, 4:35 AM
tomek updated the diff for D12870: [lib] DMOperationSpec for join thread operation.

Rename

Jul 26 2024, 4:33 AM
tomek updated the diff for D12835: [lib] DMOperationSpec for add members operation.

Rename

Jul 26 2024, 4:31 AM
tomek updated the diff for D12807: [lib] DMOperationSpec for edit operation.

Rename

Jul 26 2024, 4:29 AM
tomek updated the diff for D12806: [lib] DMOperationSpec for reaction operation.

Rename

Jul 26 2024, 4:25 AM
tomek updated the diff for D12807: [lib] DMOperationSpec for edit operation.

Rename

Jul 26 2024, 3:48 AM
tomek accepted D12869: [native][web] Fill target_message column for sidebar source.
Jul 26 2024, 3:39 AM
tomek requested review of D12881: [lib] DMOperationSpec for change thread settings operation.
Jul 26 2024, 3:30 AM
tomek requested review of D12872: [lib] DMOperationSpec for remove members operation.
Jul 26 2024, 3:26 AM
tomek requested review of D12871: [lib] DMOperationSpec for leave thread operation.
Jul 26 2024, 3:20 AM