This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +1
-90
lines changed Expand file tree Collapse file tree 7 files changed +1
-90
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 37
37
from synapse .replication .slave .storage .devices import SlavedDeviceStore
38
38
from synapse .replication .slave .storage .events import SlavedEventStore
39
39
from synapse .replication .slave .storage .filtering import SlavedFilteringStore
40
- from synapse .replication .slave .storage .groups import SlavedGroupServerStore
41
40
from synapse .replication .slave .storage .push_rule import SlavedPushRuleStore
42
41
from synapse .replication .slave .storage .receipts import SlavedReceiptsStore
43
42
from synapse .replication .slave .storage .registration import SlavedRegistrationStore
@@ -55,7 +54,6 @@ class AdminCmdSlavedStore(
55
54
SlavedApplicationServiceStore ,
56
55
SlavedRegistrationStore ,
57
56
SlavedFilteringStore ,
58
- SlavedGroupServerStore ,
59
57
SlavedDeviceInboxStore ,
60
58
SlavedDeviceStore ,
61
59
SlavedPushRuleStore ,
Original file line number Diff line number Diff line change 58
58
from synapse .replication .slave .storage .directory import DirectoryStore
59
59
from synapse .replication .slave .storage .events import SlavedEventStore
60
60
from synapse .replication .slave .storage .filtering import SlavedFilteringStore
61
- from synapse .replication .slave .storage .groups import SlavedGroupServerStore
62
61
from synapse .replication .slave .storage .keys import SlavedKeyStore
63
62
from synapse .replication .slave .storage .profile import SlavedProfileStore
64
63
from synapse .replication .slave .storage .push_rule import SlavedPushRuleStore
@@ -233,7 +232,6 @@ class GenericWorkerSlavedStore(
233
232
SlavedDeviceStore ,
234
233
SlavedReceiptsStore ,
235
234
SlavedPushRuleStore ,
236
- SlavedGroupServerStore ,
237
235
SlavedAccountDataStore ,
238
236
SlavedPusherStore ,
239
237
CensorEventsStore ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 30
30
from synapse .replication .tcp .streams import (
31
31
AccountDataStream ,
32
32
DeviceListsStream ,
33
- GroupServerStream ,
34
33
PushersStream ,
35
34
PushRulesStream ,
36
35
ReceiptsStream ,
@@ -185,10 +184,6 @@ async def on_rdata(
185
184
self .notifier .on_new_event (
186
185
StreamKeyType .DEVICE_LIST , token , rooms = all_room_ids
187
186
)
188
- elif stream_name == GroupServerStream .NAME :
189
- self .notifier .on_new_event (
190
- "groups_key" , token , users = [row .user_id for row in rows ]
191
- )
192
187
elif stream_name == PushersStream .NAME :
193
188
for row in rows :
194
189
if row .deleted :
Original file line number Diff line number Diff line change 29
29
BackfillStream ,
30
30
CachesStream ,
31
31
DeviceListsStream ,
32
- GroupServerStream ,
33
32
PresenceFederationStream ,
34
33
PresenceStream ,
35
34
PushersStream ,
61
60
FederationStream ,
62
61
TagAccountDataStream ,
63
62
AccountDataStream ,
64
- GroupServerStream ,
65
63
UserSignatureStream ,
66
64
)
67
65
}
81
79
"ToDeviceStream" ,
82
80
"TagAccountDataStream" ,
83
81
"AccountDataStream" ,
84
- "GroupServerStream" ,
85
82
"UserSignatureStream" ,
86
83
]
Original file line number Diff line number Diff line change @@ -585,26 +585,6 @@ async def _update_function(
585
585
return updates , to_token , limited
586
586
587
587
588
- class GroupServerStream (Stream ):
589
- @attr .s (slots = True , frozen = True , auto_attribs = True )
590
- class GroupsStreamRow :
591
- group_id : str
592
- user_id : str
593
- type : str
594
- content : JsonDict
595
-
596
- NAME = "groups"
597
- ROW_TYPE = GroupsStreamRow
598
-
599
- def __init__ (self , hs : "HomeServer" ):
600
- store = hs .get_datastores ().main
601
- super ().__init__ (
602
- hs .get_instance_name (),
603
- current_token_without_instance (store .get_group_stream_token ),
604
- store .get_all_groups_changes ,
605
- )
606
-
607
-
608
588
class UserSignatureStream (Stream ):
609
589
"""A user has signed their own device with their user-signing key"""
610
590
You can’t perform that action at this time.
0 commit comments