Added result code to ignore/unignore calls

Add ignore/unignore calls that take the user ID to avoid double api
calls
Fully implement the account popup ignore/unignore feature
Fix #247
This commit is contained in:
Rasmus Karlsson
2018-05-13 17:53:24 +02:00
parent d4c31309f0
commit 7bc63ba38f
6 changed files with 260 additions and 122 deletions
@@ -130,7 +130,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
return "";
}
user->ignore(target, [channel](const QString &message) {
user->ignore(target, [channel](auto resultCode, const QString &message) {
channel->addMessage(messages::Message::createSystemMessage(message));
});
@@ -147,7 +147,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
return "";
}
user->unignore(target, [channel](const QString &message) {
user->unignore(target, [channel](auto resultCode, const QString &message) {
channel->addMessage(messages::Message::createSystemMessage(message));
});