aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Channel.hpp')
-rw-r--r--include/Channel.hpp3
1 files changed, 2 insertions, 1 deletions
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<User*> 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);