From 15ad6ae7bd64d8d7319d75dbbb0827addd22fef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 23 May 2023 22:11:42 +0200 Subject: Message sending to identity or contact --- include/erebos/message.h | 3 +++ include/erebos/network.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include/erebos') diff --git a/include/erebos/message.h b/include/erebos/message.h index 497b536..011007a 100644 --- a/include/erebos/message.h +++ b/include/erebos/message.h @@ -12,6 +12,7 @@ namespace erebos { using std::unique_ptr; +class Contact; class Identity; class DirectMessage @@ -94,6 +95,8 @@ public: DirectMessageThread thread(const Identity &); + DirectMessage send(const Identity &, const std::string &); + DirectMessage send(const Contact &, const std::string &); DirectMessage send(const Peer &, const std::string &); private: diff --git a/include/erebos/network.h b/include/erebos/network.h index 66edfa4..6a3112a 100644 --- a/include/erebos/network.h +++ b/include/erebos/network.h @@ -34,6 +34,7 @@ public: template S & svc(); class PeerList & peerList() const; + optional peer(const Identity &) const; void addPeer(const string & node) const; void addPeer(const string & node, const string & service) const; -- cgit v1.2.3