@ -217,6 +217,8 @@ unsubscribe(Pid, JID) ->
try p1_fsm : sync_send_all_state_event ( Pid , { muc_unsubscribe , JID } )
catch _ : { timeout , { p1_fsm , _ , _ } } - >
{ error , ? T ( " Request has timed out " ) } ;
exit : { normal , { p1_fsm , _ , _ } } - >
ok ;
_ : { _ , { p1_fsm , _ , _ } } - >
{ error , ? T ( " Conference room does not exist " ) }
end .
@ -747,7 +749,7 @@ handle_sync_event({muc_unsubscribe, From}, _From, StateName,
from = From , sub_els = [ #muc_unsubscribe { } ] } ,
case process_iq_mucsub ( From , IQ , StateData ) of
{ result , _ , stop } - >
{ stop , ok, normal, StateData #state { config = Conf #config { persistent = false } } } ;
{ stop , normal, StateData #state { config = Conf #config { persistent = false } } } ;
{ result , _ , NewState } - >
{ reply , ok , StateName , NewState } ;
{ ignore , NewState } - >
@ -4201,7 +4203,7 @@ process_iq_vcard(From, #iq{type = set, lang = Lang, sub_els = [Pkt]},
- spec process_iq_mucsub ( jid ( ) , iq ( ) , state ( ) ) - >
{ error , stanza_error ( ) } |
{ result , undefined | muc_subscribe ( ) | muc_subscriptions ( ) , st ate( ) } |
{ result , undefined | muc_subscribe ( ) | muc_subscriptions ( ) , st op | st ate( ) } |
{ ignore , state ( ) } .
process_iq_mucsub ( _ From , #iq { type = set , lang = Lang ,
sub_els = [ #muc_subscribe { } ] } ,