mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-25 00:29:22 -05:00
SYN-48: Delete dead code
This commit is contained in:
parent
1132663cc7
commit
1550ab9e2f
@ -316,32 +316,6 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
d = {}
|
|
||||||
for r in res:
|
|
||||||
device = d.setdefault(r["device_id"], {})
|
|
||||||
session = device.setdefault(r["access_token"], [])
|
|
||||||
session.append({
|
|
||||||
"ip": r["ip"],
|
|
||||||
"user_agent": r["user_agent"],
|
|
||||||
"last_seen": r["last_seen"],
|
|
||||||
})
|
|
||||||
|
|
||||||
defer.returnValue(
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"device_id": k,
|
|
||||||
"sessions": [
|
|
||||||
{
|
|
||||||
"access_token": x,
|
|
||||||
"connections": y,
|
|
||||||
}
|
|
||||||
for x, y in v.items()
|
|
||||||
]
|
|
||||||
}
|
|
||||||
for k, v in d.items()
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
def snapshot_room(self, room_id, user_id, state_type=None, state_key=None):
|
def snapshot_room(self, room_id, user_id, state_type=None, state_key=None):
|
||||||
"""Snapshot the room for an update by a user
|
"""Snapshot the room for an update by a user
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user