Ignore message type='error'
This commit is contained in:
parent
47af5069d3
commit
8e99da692b
1 changed files with 5 additions and 1 deletions
|
@ -308,8 +308,12 @@ void UserManager::handleRemoveTimeout(const std::string jid, User *u, bool recon
|
|||
}
|
||||
|
||||
void UserManager::handleMessageReceived(Swift::Message::ref message) {
|
||||
if (message->getType() == Swift::Message::Error) {
|
||||
return;
|
||||
}
|
||||
|
||||
User *user = getUser(message->getFrom().toBare().toString());
|
||||
if (!user ){
|
||||
if (!user){
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue