Move msg.tags fallback to client

This commit is contained in:
Simon Ser 2022-11-30 11:30:46 +01:00
parent a172c810e9
commit 4b306305bf
2 changed files with 3 additions and 3 deletions

View File

@ -598,9 +598,6 @@ export default class App extends Component {
// operators and can contain important information. // operators and can contain important information.
msg.isHighlight = irc.isHighlight(msg, client.nick, client.cm) || irc.isServerBroadcast(msg); msg.isHighlight = irc.isHighlight(msg, client.nick, client.cm) || irc.isServerBroadcast(msg);
if (!msg.tags) {
msg.tags = {};
}
if (!msg.tags.time) { if (!msg.tags.time) {
msg.tags.time = irc.formatDate(new Date()); msg.tags.time = irc.formatDate(new Date());
} }

View File

@ -295,6 +295,9 @@ export default class Client extends EventTarget {
if (!msg.prefix) { if (!msg.prefix) {
msg.prefix = this.serverPrefix; msg.prefix = this.serverPrefix;
} }
if (!msg.tags) {
msg.tags = {};
}
let msgBatch = null; let msgBatch = null;
if (msg.tags["batch"]) { if (msg.tags["batch"]) {