mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-13 14:59:27 -05:00
Intern sender, event_id and room_id in events
This commit is contained in:
parent
fe9794706a
commit
f96526ffc2
@ -146,6 +146,11 @@ class FrozenEvent(EventBase):
|
|||||||
event_dict["type"] = intern_string(event_dict["type"])
|
event_dict["type"] = intern_string(event_dict["type"])
|
||||||
if "state_key" in event_dict:
|
if "state_key" in event_dict:
|
||||||
event_dict["state_key"] = intern_string(event_dict["state_key"])
|
event_dict["state_key"] = intern_string(event_dict["state_key"])
|
||||||
|
if "sender" in event_dict:
|
||||||
|
event_dict["sender"] = intern_string(event_dict["sender"])
|
||||||
|
|
||||||
|
event_dict["event_id"] = intern(event_dict["event_id"].encode('ascii'))
|
||||||
|
event_dict["room_id"] = intern(event_dict["room_id"].encode('ascii'))
|
||||||
|
|
||||||
if USE_FROZEN_DICTS:
|
if USE_FROZEN_DICTS:
|
||||||
frozen_dict = freeze(event_dict)
|
frozen_dict = freeze(event_dict)
|
||||||
|
Loading…
Reference in New Issue
Block a user