decord/source/modules/conversations/ConversationVisibilityStore.tsx

45 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 7669
// Function ID: 7670
// Name: ConversationVisibilityStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 7669 (ConversationVisibilityStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
const highlightingEnabled = true;
2026-08-24 06:08:38 +00:00
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
2026-07-29 08:29:29 +00:00
class ConversationVisibilityStore extends DeviceSettingsStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = ConversationVisibilityStore.prototype;
prototype["initialize"] = function initialize(highlightingEnabled) {
let flag;
if (highlightingEnabled != null) {
flag = highlightingEnabled.highlightingEnabled;
}
if (flag == null) {
flag = true;
2026-07-20 16:05:17 +00:00
}
closure_0 = flag;
2026-07-29 08:29:29 +00:00
};
prototype["isHighlightingEnabled"] = function isHighlightingEnabled() {
return closure_0;
2026-07-29 08:29:29 +00:00
};
prototype["getState"] = function getState() {
return { highlightingEnabled };
2026-07-29 08:29:29 +00:00
};
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { highlightingEnabled };
2026-07-29 08:29:29 +00:00
};
ConversationVisibilityStore.displayName = "ConversationVisibilityStore";
ConversationVisibilityStore.persistKey = "ConversationVisibilityStore";
const conversationVisibilityStore = new ConversationVisibilityStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
CONVERSATIONS_TOGGLE_HIGHLIGHTING: function handleToggleHighlighting() {
2026-07-29 08:29:29 +00:00
closure_0 = !closure_0;
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/conversations/ConversationVisibilityStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default conversationVisibilityStore;