summaryrefslogtreecommitdiff
path: root/include/erebos/message.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-01-07 20:38:51 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-01-08 22:15:21 +0100
commit56b6a56b5d14781cd24e38860c082bfdab96c918 (patch)
treefa8fc33960d19d8ef2bdce57db6f6697f70c8dc3 /include/erebos/message.h
parent6e6836e7885259b731651ae172bd6313edae7cdd (diff)
Message: send messages as sync from shared state
Diffstat (limited to 'include/erebos/message.h')
-rw-r--r--include/erebos/message.h5
1 files changed, 5 insertions, 0 deletions
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<LocalState> &, const Identity &, const std::string &);
+ static DirectMessage send(const Head<LocalState> &, const Contact &, const std::string &);
+ static DirectMessage send(const Head<LocalState> &, 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<LocalState> &, const DirectMessageThread &, const Peer &);
const Config config;
const Server & server;