Split paginate_room_events storage function
Split paginate_room_events storage function

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse