|
@@ -335,6 +335,7 @@
|
|
sid: undefined,
|
|
sid: undefined,
|
|
sounds_path: '/sounds/',
|
|
sounds_path: '/sounds/',
|
|
storage: 'session',
|
|
storage: 'session',
|
|
|
|
+ synchronize_availability: true, // Set to false to not sync with other clients or with resource name of the particular client that it should synchronize with
|
|
use_vcards: true,
|
|
use_vcards: true,
|
|
visible_toolbar_buttons: {
|
|
visible_toolbar_buttons: {
|
|
'emoticons': true,
|
|
'emoticons': true,
|
|
@@ -3310,8 +3311,8 @@
|
|
status_message = $presence.find('status'),
|
|
status_message = $presence.find('status'),
|
|
contact = this.get(bare_jid);
|
|
contact = this.get(bare_jid);
|
|
if (this.isSelf(bare_jid)) {
|
|
if (this.isSelf(bare_jid)) {
|
|
- if ((converse.connection.jid !== jid)&&(presence_type !== 'unavailable')) {
|
|
|
|
- // Another resource has changed its status, we'll update ours as well.
|
|
|
|
|
|
+ if ((converse.connection.jid !== jid)&&(presence_type !== 'unavailable')&&(converse.synchronize_availability === true || converse.synchronize_availability === resource)) {
|
|
|
|
+ // Another resource has changed its status and synchronize_availability option let to update, we'll update ours as well.
|
|
converse.xmppstatus.save({'status': chat_status});
|
|
converse.xmppstatus.save({'status': chat_status});
|
|
if (status_message.length) { converse.xmppstatus.save({'status_message': status_message.text()}); }
|
|
if (status_message.length) { converse.xmppstatus.save({'status_message': status_message.text()}); }
|
|
}
|
|
}
|