diff --git a/src/jamidht/conversation.cpp b/src/jamidht/conversation.cpp index bf658536b..914d66dc1 100644 --- a/src/jamidht/conversation.cpp +++ b/src/jamidht/conversation.cpp @@ -262,7 +262,7 @@ public: bool isAdmin() const; std::filesystem::path repoPath() const; - void announce(const std::string& commitId, bool commitFromSelf = false) const + void announce(const std::string& commitId, bool commitFromSelf = false) { std::vector vec; if (!commitId.empty()) @@ -270,7 +270,7 @@ public: announce(vec, commitFromSelf); } - void announce(const std::vector& commits, bool commitFromSelf = false) const + void announce(const std::vector& commits, bool commitFromSelf = false) { std::vector convcommits; convcommits.reserve(commits.size()); @@ -451,7 +451,7 @@ public: } } - void announce(const std::vector>& commits, bool commitFromSelf = false) const + void announce(const std::vector>& commits, bool commitFromSelf = false) { if (!repository_) return; @@ -676,12 +676,12 @@ public: /** * Loaded history represents the linearized history to show for clients */ - mutable History loadedHistory_ {}; + History loadedHistory_ {}; std::vector> addToHistory( const std::vector>& commits, bool messageReceived = false, bool commitFromSelf = false, - History* history = nullptr) const; + History* history = nullptr); void handleReaction(History& history, const std::shared_ptr& sharedCommit) const; @@ -1168,7 +1168,7 @@ std::vector> Conversation::Impl::addToHistory(const std::vector>& commits, bool messageReceived, bool commitFromSelf, - History* optHistory) const + History* optHistory) { auto acc = account_.lock(); if (!acc)