|
|
|
@ -20,6 +20,7 @@ from synapse.api.errors import RoomError, SynapseError |
|
|
|
|
from synapse.streams.config import PaginationConfig |
|
|
|
|
from synapse.events.utils import serialize_event |
|
|
|
|
from synapse.events.validator import EventValidator |
|
|
|
|
from synapse.util import unwrapFirstError |
|
|
|
|
from synapse.util.logcontext import PreserveLoggingContext |
|
|
|
|
from synapse.types import UserID |
|
|
|
|
|
|
|
|
@ -303,7 +304,7 @@ class MessageHandler(BaseHandler): |
|
|
|
|
event.room_id |
|
|
|
|
), |
|
|
|
|
] |
|
|
|
|
) |
|
|
|
|
).addErrback(unwrapFirstError) |
|
|
|
|
|
|
|
|
|
start_token = now_token.copy_and_replace("room_key", token[0]) |
|
|
|
|
end_token = now_token.copy_and_replace("room_key", token[1]) |
|
|
|
@ -328,7 +329,7 @@ class MessageHandler(BaseHandler): |
|
|
|
|
yield defer.gatherResults( |
|
|
|
|
[handle_room(e) for e in room_list], |
|
|
|
|
consumeErrors=True |
|
|
|
|
) |
|
|
|
|
).addErrback(unwrapFirstError) |
|
|
|
|
|
|
|
|
|
ret = { |
|
|
|
|
"rooms": rooms_ret, |
|
|
|
|