mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 20:29:23 -05:00
Fix bug where we used an event_id as a pdu_id
This commit is contained in:
parent
027f51763e
commit
2205aba3ed
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from synapse.federation.pdu_codec import encode_event_id
|
from synapse.federation.pdu_codec import encode_event_id, decode_event_id
|
||||||
from synapse.util.logutils import log_function
|
from synapse.util.logutils import log_function
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
@ -87,9 +87,11 @@ class StateHandler(object):
|
|||||||
# than the power level of the user
|
# than the power level of the user
|
||||||
# power_level = self._get_power_level_for_event(event)
|
# power_level = self._get_power_level_for_event(event)
|
||||||
|
|
||||||
|
pdu_id, origin = decode_event_id(event.event_id, self.server_name)
|
||||||
|
|
||||||
yield self.store.update_current_state(
|
yield self.store.update_current_state(
|
||||||
pdu_id=event.event_id,
|
pdu_id=pdu_id,
|
||||||
origin=self.server_name,
|
origin=origin,
|
||||||
context=key.context,
|
context=key.context,
|
||||||
pdu_type=key.type,
|
pdu_type=key.type,
|
||||||
state_key=key.state_key
|
state_key=key.state_key
|
||||||
|
Loading…
Reference in New Issue
Block a user