Skip to content

Commit

Permalink
Fixed issue 103 Automatically reconnect bookmarked conference rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdeckers committed May 13, 2010
1 parent 5679116 commit 37d3b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Client/js/conference-container.js
Expand Up @@ -266,7 +266,7 @@ function SessionTracker ( Address )
{
/* Error
*/
if ( Event.Type == 'message' && Event.Payload.Type == 'error' )
if ( Event.Payload.Type == 'error' )
{
if ( Event.Payload.ErrorMessage.length )
{
Expand Down Expand Up @@ -412,7 +412,9 @@ function SessionTracker ( Address )
/* Update
*/
else if ( this.Occupants.Exists( Event.Payload.FromAddress.Resource ) )
{
this.Occupants( Event.Payload.FromAddress.Resource ).Update( Event.Payload );
}
/* Add
*/
else if ( Event.Payload.FromAddress.Resource.length )
Expand Down
2 changes: 1 addition & 1 deletion Client/src/main/dial_conference.js
Expand Up @@ -16,7 +16,7 @@ function dial_conference ( Address, Password, InviteJid, InviteGroup )
Tracker.Password = Password;
Tracker.SendPresence( external.globals( 'cfg' )( 'lastmode' ), external.globals( 'cfg' )( 'lastmsg' ) );
}
if ( Tracker.Address.Resource.length && Tracker.Address.Resource != Address.Resource )
if ( Address.Resource.length && Tracker.Address.Resource != Address.Resource )
{
Tracker.Address = Address;
Tracker.DrawContainerInfo();
Expand Down

0 comments on commit 37d3b20

Please sign in to comment.