Kinda fix networks
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user