This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ Remove support for the non-standard groups/communities feature from Synapse.
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ def get_current_token(self) -> StreamToken:
54
54
push_rules_key = self .store .get_max_push_rules_stream_id ()
55
55
to_device_key = self .store .get_to_device_stream_token ()
56
56
device_list_key = self .store .get_device_stream_token ()
57
- groups_key = self .store .get_group_stream_token ()
58
57
59
58
token = StreamToken (
60
59
room_key = self .sources .room .get_current_key (),
@@ -65,7 +64,8 @@ def get_current_token(self) -> StreamToken:
65
64
push_rules_key = push_rules_key ,
66
65
to_device_key = to_device_key ,
67
66
device_list_key = device_list_key ,
68
- groups_key = groups_key ,
67
+ # Groups key is unused.
68
+ groups_key = 0 ,
69
69
)
70
70
return token
71
71
Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ class StreamToken:
639
639
6. `push_rules_key`: `541479`
640
640
7. `to_device_key`: `274711`
641
641
8. `device_list_key`: `265584`
642
- 9. `groups_key`: `1`
642
+ 9. `groups_key`: `1` (note that this key is now unused)
643
643
644
644
You can see how many of these keys correspond to the various
645
645
fields in a "/sync" response:
@@ -691,6 +691,7 @@ class StreamToken:
691
691
push_rules_key : int
692
692
to_device_key : int
693
693
device_list_key : int
694
+ # Note that the groups key is no longer used and may have bogus values.
694
695
groups_key : int
695
696
696
697
_SEPARATOR = "_"
@@ -722,6 +723,9 @@ async def to_string(self, store: "DataStore") -> str:
722
723
str (self .push_rules_key ),
723
724
str (self .to_device_key ),
724
725
str (self .device_list_key ),
726
+ # Note that the groups key is no longer used, but it is still
727
+ # serialized so that there will not be confusion in the future
728
+ # if additional tokens are added.
725
729
str (self .groups_key ),
726
730
]
727
731
)
You can’t perform that action at this time.
0 commit comments