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:
@@ -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));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user