Skip to content
Snippets Groups Projects
Commit e2a76ce7 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

manager: cleanup, remove unused arguments

Change-Id: I13cb1b54e9ade0bc61e4ea3e58c6708154b9e6f0
parent 7a8aa3d3
No related branches found
No related tags found
No related merge requests found
......@@ -866,9 +866,9 @@ public:
* @param conversationId Related conversation
* @return std::optional<std::weak_ptr<ChannelSocket>> the related socket
*/
std::shared_ptr<dhtnet::ChannelSocket> gitSocket(const std::string_view accountId,
const std::string_view deviceId,
const std::string_view conversationId);
std::shared_ptr<dhtnet::ChannelSocket> gitSocket(std::string_view accountId,
std::string_view deviceId,
std::string_view conversationId);
void setDefaultModerator(const std::string& accountID, const std::string& peerURI, bool state);
std::vector<std::string> getDefaultModerators(const std::string& accountID);
......@@ -906,13 +906,9 @@ private:
// Helper to install a callback to be called once by the main event loop
template<typename Callback>
static void
runOnMainThread(Callback&& cb,
const char* filename = CURRENT_FILENAME(),
uint32_t linum = CURRENT_LINE())
runOnMainThread(Callback&& cb)
{
Manager::instance().scheduler().run([cb = std::forward<Callback>(cb)]() mutable { cb(); },
filename,
linum);
Manager::instance().scheduler().run([cb = std::forward<Callback>(cb)]() mutable { cb(); });
}
} // namespace jami
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment