Release V1.4
This commit is contained in:
parent
4e95f028af
commit
4134769709
@ -3339,6 +3339,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isManualAnn = msg.metadata && (typeof msg.metadata === 'string' ? JSON.parse(msg.metadata) : msg.metadata).is_manual_announcement;
|
||||||
const isMe = msg.user_id == window.currentUserId || msg.username == window.currentUsername;
|
const isMe = msg.user_id == window.currentUserId || msg.username == window.currentUsername;
|
||||||
const hasManageRights = window.canManageChannels || window.isServerOwner || false;
|
const hasManageRights = window.canManageChannels || window.isServerOwner || false;
|
||||||
|
|
||||||
@ -3373,8 +3374,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const mentionHtml = `<span class="mention">@${window.currentUsername}</span>`;
|
const mentionHtml = `<span class="mention">@${window.currentUsername}</span>`;
|
||||||
const contentWithMentions = parseCustomEmotes(msg.content).replace(mentionRegex, mentionHtml);
|
const contentWithMentions = parseCustomEmotes(msg.content).replace(mentionRegex, mentionHtml);
|
||||||
|
|
||||||
const isManualAnn = msg.metadata && (typeof msg.metadata === 'string' ? JSON.parse(msg.metadata) : msg.metadata).is_manual_announcement;
|
|
||||||
|
|
||||||
div.innerHTML = `
|
div.innerHTML = `
|
||||||
<div class="message-avatar" style="${avatarStyle}"></div>
|
<div class="message-avatar" style="${avatarStyle}"></div>
|
||||||
<div class="message-content">
|
<div class="message-content">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user