From c633d67f627c23510681842f03522425db91fb91 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 30 May 2018 14:54:40 +0200 Subject: Do not get notification if loading messages from cache, or if message is not latest --- include/Channel.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include/Channel.hpp') diff --git a/include/Channel.hpp b/include/Channel.hpp index 5f5699e..af6cbf2 100644 --- a/include/Channel.hpp +++ b/include/Channel.hpp @@ -47,6 +47,7 @@ namespace dchat const std::vector getUsers() const; OnlineUser* getUserByPublicKey(const odhtdb::Signature::PublicKey &publicKey); const odhtdb::DatabaseNode& getNodeInfo() const; + Message* getLatestMessage(); // If timestamp is 0, then current time is used void addLocalMessage(const std::string &msg, User *owner, u64 timestampSeconds = 0); -- cgit v1.2.3