mirror of https://github.com/calzoneman/sync.git
Backwards compatibility for formatChatMessage
This commit is contained in:
parent
a232b96786
commit
21bb2b9a4e
|
@ -1442,6 +1442,12 @@ function sendVideoUpdate() {
|
|||
/* chat */
|
||||
|
||||
function formatChatMessage(data) {
|
||||
// Backwards compat
|
||||
if (!data.meta || data.msgclass) {
|
||||
data.meta = {
|
||||
addClass: data.msgclass
|
||||
};
|
||||
}
|
||||
// Phase 1: Determine whether to show the username or not
|
||||
var skip = data.username === LASTCHATNAME;
|
||||
if(data.meta.addClass === "server-whisper")
|
||||
|
|
Loading…
Reference in New Issue