aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-30 14:54:40 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-30 14:54:44 +0200
commitc633d67f627c23510681842f03522425db91fb91 (patch)
tree14c777b52dfcd60e30b5e4470da9eb8a7f24e88d /include/Channel.hpp
parent551fa4d1e90d8f197bfd2ef6f06f933592dd2450 (diff)
Do not get notification if loading messages from cache, or if message is not latest
Diffstat (limited to 'include/Channel.hpp')
-rw-r--r--include/Channel.hpp1
1 files changed, 1 insertions, 0 deletions
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<User*> 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);