Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support thread IDs on receipts (implement MSC3771) #13202

Closed
wants to merge 14 commits into from

Conversation

clokep
Copy link
Member

@clokep clokep commented Jul 6, 2022

Track thread IDs for receipts, implementing MSC3771.

Depends on #13198, #13181.

Part of #12550.

TODO

  • Properly mark notifications as read for threads.
  • Update the sync code to allow multiple receipts.
  • /versions parameter.
  • Add an experimental config flag.
  • Write thread-specific tests.

@clokep clokep force-pushed the clokep/thread-read-receipts branch from b2d9b72 to 9f0c43a Compare July 6, 2022 17:26
@clokep
Copy link
Member Author

clokep commented Jul 6, 2022

I think this needs to pull in #13181 to mark specific threads as read.

@clokep clokep force-pushed the clokep/thread-read-receipts branch 2 times, most recently from c87ebec to 2b922b0 Compare July 11, 2022 16:20
@clokep clokep force-pushed the clokep/thread-read-receipts branch from 2b922b0 to c96aedb Compare July 28, 2022 19:16
@clokep clokep changed the base branch from develop to clokep/thread-notifs July 28, 2022 19:16
@clokep clokep force-pushed the clokep/thread-notifs branch from 50a1187 to b091d58 Compare July 28, 2022 19:31
@clokep clokep force-pushed the clokep/thread-read-receipts branch 4 times, most recently from 0faf7dd to 5a0feda Compare July 29, 2022 12:10
Comment on lines -290 to -379
# XXX All threads should have the same stream ordering?
max_summary_stream_ordering = max(
summary_stream_ordering, max_summary_stream_ordering
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something seems a little off in this code -- should each thread have it's own summary stream ordering or each room? The code needs to be audited either way to ensure that we're doing the proper thing here.

@clokep clokep force-pushed the clokep/thread-notifs branch from b091d58 to a6d67c2 Compare August 2, 2022 12:01
@clokep clokep force-pushed the clokep/thread-read-receipts branch 2 times, most recently from 3996cde to 69c4fe4 Compare August 2, 2022 12:06
@clokep clokep force-pushed the clokep/thread-notifs branch from a6d67c2 to 9b92fce Compare August 3, 2022 14:46
@clokep clokep force-pushed the clokep/thread-read-receipts branch 2 times, most recently from 408f069 to fa237ad Compare August 3, 2022 15:09
@clokep clokep force-pushed the clokep/thread-notifs branch 3 times, most recently from 7d3e937 to d56296a Compare August 5, 2022 12:18
@clokep clokep force-pushed the clokep/thread-read-receipts branch 2 times, most recently from f0ab6a7 to cd23807 Compare August 5, 2022 17:28
@clokep clokep force-pushed the clokep/thread-read-receipts branch from cd23807 to 72d567d Compare August 16, 2022 15:44
@clokep clokep force-pushed the clokep/thread-read-receipts branch from 72d567d to 185b038 Compare August 16, 2022 16:44
@clokep
Copy link
Member Author

clokep commented Sep 12, 2022

Based on feedback in #13181, some of this is going to be reworked; I'm going to close this for now.

@clokep
Copy link
Member Author

clokep commented Sep 12, 2022

See #13782 for a replacement PR.

@clokep clokep deleted the clokep/thread-read-receipts branch September 14, 2022 19:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant