From 9e576f9fbcbcc4603689b0b1215cf3d526bd9616 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 30 Apr 2018 13:54:10 +0200 Subject: Add timestamp to messages --- include/Channel.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/Channel.hpp') diff --git a/include/Channel.hpp b/include/Channel.hpp index 31a17f4..5650eb1 100644 --- a/include/Channel.hpp +++ b/include/Channel.hpp @@ -28,7 +28,8 @@ namespace dchat const std::vector getUsers() const; User* getUserByPublicKey(const odhtdb::Signature::PublicKey &publicKey); - void addLocalMessage(const std::string &msg, User *owner); + // If timestamp is 0, then timestamp is not used + void addLocalMessage(const std::string &msg, User *owner, u64 timestampSeconds = 0); void addMessage(const std::string &msg); void addUser(User *user); -- cgit v1.2.3