1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-25 02:32:26 -05:00

Fix: Change a MUC subject

This commit is contained in:
Sebastien Hut 2015-01-25 15:57:14 +01:00
parent 4b92a8822d
commit f24506e723

View File

@ -303,10 +303,10 @@ module.exports = function (client, app) {
}
});
client.on('groupchat:subject', function (msg) {
client.on('muc:subject', function (msg) {
var contact = me.getContact(msg.from, msg.to);
if (contact) {
contact.subject = msg.subject;
contact.subject = msg.subject === 'true' ? '' : msg.subject;
}
});