Kinda fix networks

This commit is contained in:
Lucas
2026-01-31 17:52:49 +10:00
parent f70af3c4ea
commit 65d8c7d5e2
13 changed files with 97 additions and 29 deletions

View File

@@ -44,4 +44,7 @@ class DataManager():
def update_message(self, hash: str, updates: Dict[str, Any]) -> bool:
return self.store.update_item("messages", "hash", hash, updates)
def get_chat(self, from_user, to_user):
return [m for m in self.list_messages() if from_user == m.get("from") and to_user == m.get("to")]