Don't pass subscription in PresenceEracle
This commit is contained in:
parent
4c334e9f1c
commit
25390730f6
1 changed files with 2 additions and 2 deletions
|
@ -53,11 +53,11 @@ void PresenceOracle::handleIncomingPresence(Presence::ref presence) {
|
|||
return;
|
||||
|
||||
JID bareJID(presence->getFrom().toBare());
|
||||
if (presence->getType() == Presence::Subscribe) {
|
||||
if (presence->getType() == Presence::Subscribe || presence->getType() == Presence::Subscribed) {
|
||||
}
|
||||
else {
|
||||
Presence::ref passedPresence = presence;
|
||||
if (presence->getType() == Presence::Unsubscribe) {
|
||||
if (presence->getType() == Presence::Unsubscribe || presence->getType() == Presence::Unsubscribed) {
|
||||
/* 3921bis says that we don't follow up with an unavailable, so simulate this ourselves */
|
||||
passedPresence = Presence::ref(new Presence());
|
||||
passedPresence->setType(Presence::Unavailable);
|
||||
|
|
Loading…
Add table
Reference in a new issue