diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-30 14:54:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-30 14:54:44 +0200 |
commit | c633d67f627c23510681842f03522425db91fb91 (patch) | |
tree | 14c777b52dfcd60e30b5e4470da9eb8a7f24e88d /src/Channel.cpp | |
parent | 551fa4d1e90d8f197bfd2ef6f06f933592dd2450 (diff) |
Do not get notification if loading messages from cache, or if message is not latest
Diffstat (limited to 'src/Channel.cpp')
-rw-r--r-- | src/Channel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Channel.cpp b/src/Channel.cpp index adcb9be..75d805c 100644 --- a/src/Channel.cpp +++ b/src/Channel.cpp @@ -118,6 +118,11 @@ namespace dchat return databaseNodeInfo; } + Message* Channel::getLatestMessage() + { + return messageBoard.getLatestMessage(); + } + void Channel::addLocalMessage(const string &msg, User *owner, u64 timestampSeconds) { addLocalMessage(msg, owner, timestampSeconds, odhtdb::Hash()); |