From c9463e330883566b1d5e3258a1aed37290e17988 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 24 Feb 2010 13:14:45 +0100 Subject: [PATCH] Fix resending authorization problem --- src/mod_roster.erl | 4 ++-- src/mod_roster_odbc.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod_roster.erl b/src/mod_roster.erl index 497a60c31..13b8bbacf 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -752,7 +752,7 @@ in_state_change(to, in, subscribed) -> none; in_state_change(to, in, unsubscribe) -> {to, none}; in_state_change(to, in, unsubscribed) -> {none, in}; in_state_change(from, none, subscribe) -> none; -in_state_change(from, none, subscribed) -> none; +in_state_change(from, none, subscribed) -> {both, none}; in_state_change(from, none, unsubscribe) -> {none, none}; in_state_change(from, none, unsubscribed) -> none; in_state_change(from, out, subscribe) -> none; @@ -781,7 +781,7 @@ out_state_change(none, both, subscribed) -> {from, out}; out_state_change(none, both, unsubscribe) -> {none, in}; out_state_change(none, both, unsubscribed) -> {none, out}; out_state_change(to, none, subscribe) -> none; -out_state_change(to, none, subscribed) -> none; +out_state_change(to, none, subscribed) -> {both, none}; out_state_change(to, none, unsubscribe) -> {none, none}; out_state_change(to, none, unsubscribed) -> none; out_state_change(to, in, subscribe) -> none; diff --git a/src/mod_roster_odbc.erl b/src/mod_roster_odbc.erl index e0b8fb007..54d210dcb 100644 --- a/src/mod_roster_odbc.erl +++ b/src/mod_roster_odbc.erl @@ -694,7 +694,7 @@ in_state_change(to, in, subscribed) -> none; in_state_change(to, in, unsubscribe) -> {to, none}; in_state_change(to, in, unsubscribed) -> {none, in}; in_state_change(from, none, subscribe) -> none; -in_state_change(from, none, subscribed) -> none; +in_state_change(from, none, subscribed) -> {both, none}; in_state_change(from, none, unsubscribe) -> {none, none}; in_state_change(from, none, unsubscribed) -> none; in_state_change(from, out, subscribe) -> none; @@ -723,7 +723,7 @@ out_state_change(none, both, subscribed) -> {from, out}; out_state_change(none, both, unsubscribe) -> {none, in}; out_state_change(none, both, unsubscribed) -> {none, out}; out_state_change(to, none, subscribe) -> none; -out_state_change(to, none, subscribed) -> none; +out_state_change(to, none, subscribed) -> {both, none}; out_state_change(to, none, unsubscribe) -> {none, none}; out_state_change(to, none, unsubscribed) -> none; out_state_change(to, in, subscribe) -> none;