parent
393dd6150d
commit
d992efc34b
|
@ -5103,7 +5103,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onFeatureAdded: function (feature) {
|
onFeatureAdded: function (feature) {
|
||||||
if (feature.get('var') == Strophe.NS.MAM) {
|
var prefs = feature.get('preferences') || {};
|
||||||
|
if (feature.get('var') == Strophe.NS.MAM && prefs['default'] !== converse.message_archiving) {
|
||||||
// Ask the server for archiving preferences
|
// Ask the server for archiving preferences
|
||||||
converse.connection.sendIQ(
|
converse.connection.sendIQ(
|
||||||
$iq({'type': 'get'}).c('prefs', {'xmlns': Strophe.NS.MAM}),
|
$iq({'type': 'get'}).c('prefs', {'xmlns': Strophe.NS.MAM}),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user