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:
parent
4b92a8822d
commit
f24506e723
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user