From 56b6a56b5d14781cd24e38860c082bfdab96c918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 7 Jan 2024 20:38:51 +0100 Subject: Message: send messages as sync from shared state --- include/erebos/message.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/erebos') diff --git a/include/erebos/message.h b/include/erebos/message.h index 194044c..6ad6e54 100644 --- a/include/erebos/message.h +++ b/include/erebos/message.h @@ -131,12 +131,17 @@ public: DirectMessageThread thread(const Identity &); + static DirectMessage send(const Head &, const Identity &, const std::string &); + static DirectMessage send(const Head &, const Contact &, const std::string &); + static DirectMessage send(const Head &, const Peer &, const std::string &); + DirectMessage send(const Identity &, const std::string &); DirectMessage send(const Contact &, const std::string &); DirectMessage send(const Peer &, const std::string &); private: void updateHandler(const DirectMessageThreads &); + static void syncWithPeer(const Head &, const DirectMessageThread &, const Peer &); const Config config; const Server & server; -- cgit v1.2.3