Bug 1656376 - Fix the parameter ordering of writeMessage for IRC. r=khushil

This commit is contained in:
Patrick Cloke 2020-08-01 13:24:33 +03:00
Родитель 133fe30e46
Коммит d124b3ded4
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -685,9 +685,9 @@ ircChannel.prototype = {
// everyone can.
return !this._modes.has("t") || participant.op || participant.halfOp;
},
writeMessage(aMsg, aWho, aObject) {
const messageProps = this.handleTags(aMsg, aWho, aObject);
GenericConvChatPrototype.writeMessage.call(this, aMsg, aWho, messageProps);
writeMessage(aWho, aMsg, aObject) {
const messageProps = this.handleTags(aWho, aMsg, aObject);
GenericConvChatPrototype.writeMessage.call(this, aWho, aMsg, messageProps);
},
};
Object.assign(ircChannel.prototype, GenericIRCConversation);
@ -775,9 +775,9 @@ ircConversation.prototype = {
this._name = aNewNick;
this.notifyObservers(null, "update-conv-title");
},
writeMessage(aMsg, aWho, aObject) {
const messageProps = this.handleTags(aMsg, aWho, aObject);
GenericConvIMPrototype.writeMessage.call(this, aMsg, aWho, messageProps);
writeMessage(aWho, aMsg, aObject) {
const messageProps = this.handleTags(aWho, aMsg, aObject);
GenericConvIMPrototype.writeMessage.call(this, aWho, aMsg, messageProps);
},
};
Object.assign(ircConversation.prototype, GenericIRCConversation);