]> granicus.if.org Git - ejabberd/commitdiff
Fix resending authorization problem
authorBadlop <badlop@process-one.net>
Wed, 24 Feb 2010 12:14:45 +0000 (13:14 +0100)
committerBadlop <badlop@process-one.net>
Wed, 24 Feb 2010 12:14:45 +0000 (13:14 +0100)
src/mod_roster.erl
src/mod_roster_odbc.erl

index 8370f5de0590fb8152f89b16731151f152b5dd23..90c46017d76e2f782f8dd5ffc9c7cb85070e5d2b 100644 (file)
@@ -604,7 +604,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;
@@ -633,7 +633,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;
index 8f64e5f9aba65c94a44fc7037fdc137469084eb6..9c9f14192775ac6c74db882577ab0a77fa825ddd 100644 (file)
@@ -666,7 +666,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;
@@ -695,7 +695,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;