From 161b5dbbf43d505b727e0ed3cae15458a72147f9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 May 2018 18:36:51 +0200 Subject: Only allow owner of message to delete it --- include/Channel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/Channel.hpp') diff --git a/include/Channel.hpp b/include/Channel.hpp index 7d4cb08..93f3725 100644 --- a/include/Channel.hpp +++ b/include/Channel.hpp @@ -47,8 +47,8 @@ namespace dchat void addLocalMessage(const std::string &msg, User *owner, u64 timestampSeconds = 0); void addLocalMessage(const std::string &msg, User *owner, u64 timestampSeconds, const odhtdb::Hash &id); void addMessage(const std::string &msg); - void deleteLocalMessage(const odhtdb::Hash &id); - void deleteMessage(const odhtdb::Hash &id); + void deleteLocalMessage(const odhtdb::Hash &id, const odhtdb::Signature::PublicKey &requestedByUser); + void deleteMessage(const odhtdb::Hash &id, const odhtdb::Signature::PublicKey &requestedByUser); void addUserLocally(User *user); bool addUser(const odhtdb::Signature::PublicKey &userId, const std::string &groupId); -- cgit v1.2.3