exports.setup = void 0;
UiNotification = tslib_1.__importStar(UiNotification);
async function markAllAsRead() {
- var _a;
await (0, Ajax_1.dboAction)("markAllAsRead", "wcf\\data\\conversation\\ConversationAction").dispatch();
document.querySelectorAll(".conversationList .new").forEach((el) => {
el.classList.remove("new");
});
- (_a = document.querySelector("#unreadConversations .badgeUpdate")) === null || _a === void 0 ? void 0 : _a.remove();
+ document.querySelector("#unreadConversations .badgeUpdate")?.remove();
UiNotification.show();
}
function setup() {
exports.setup = void 0;
const unreadConversations = new WeakSet();
async function markAsRead(conversation) {
- var _a;
const conversationId = parseInt(conversation.dataset.conversationId, 10);
await (0, Ajax_1.dboAction)("markAsRead", "wcf\\data\\conversation\\ConversationAction").objectIds([conversationId]).dispatch();
conversation.classList.remove("new");
- (_a = conversation.querySelector(".columnAvatar p")) === null || _a === void 0 ? void 0 : _a.removeAttribute("title");
+ conversation.querySelector(".columnAvatar p")?.removeAttribute("title");
}
function setup() {
document.querySelectorAll(".conversationList .new .columnAvatar").forEach((el) => {
UiItemListUser = tslib_1.__importStar(UiItemListUser);
Language = tslib_1.__importStar(Language);
class UiParticipantAdd {
+ conversationId;
constructor(conversationId) {
this.conversationId = conversationId;
Ajax.api(this, {
Language = tslib_1.__importStar(Language);
UiNotification = tslib_1.__importStar(UiNotification);
class UiSubjectEditor {
+ objectId;
+ subject;
constructor(objectId) {
this.objectId = objectId;
}
exports.setup = void 0;
View_1 = tslib_1.__importDefault(View_1);
class UserMenuDataConversation {
+ button;
+ counter = 0;
+ options;
+ stale = true;
+ view = undefined;
constructor(button, options) {
- this.counter = 0;
- this.stale = true;
- this.view = undefined;
this.button = button;
this.options = options;
const badge = button.querySelector(".badge");
"ts/**/*"
],
"compilerOptions": {
- "target": "es2019",
+ "target": "ES2022",
"module": "amd",
"rootDir": "ts/",
"outDir": "files/js/",
"lib": [
- "dom",
- "es2019"
+ "DOM",
+ "DOM.Iterable",
+ "ES2022"
],
"strictNullChecks": true,
"moduleResolution": "node",