diff options
author | Erik Johnston <erik@matrix.org> | 2014-10-17 18:56:42 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-10-17 18:56:42 +0100 |
commit | 5ffe5ab43fa090111a0141b04ce6342172f60724 (patch) | |
tree | 45af4a0c2fdbb3c89853645cafe1440b13c6d3f4 /synapse/storage/pdu.py | |
parent | Finish implementing the new join dance. (diff) | |
download | synapse-5ffe5ab43fa090111a0141b04ce6342172f60724.tar.xz |
Use state groups to get current state. Make join dance actually work.
Diffstat (limited to 'synapse/storage/pdu.py')
-rw-r--r-- | synapse/storage/pdu.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/pdu.py b/synapse/storage/pdu.py index d70467dcd6..b1cb0185a6 100644 --- a/synapse/storage/pdu.py +++ b/synapse/storage/pdu.py @@ -277,6 +277,12 @@ class PduStore(SQLBaseStore): (context, depth) ) + def get_latest_pdus_in_context(self, context): + return self.runInteraction( + self._get_latest_pdus_in_context, + context + ) + def _get_latest_pdus_in_context(self, txn, context): """Get's a list of the most current pdus for a given context. This is used when we are sending a Pdu and need to fill out the `prev_pdus` |