decord/alpha/source/modules/conversations/ConversationVisibilityStore.tsx

45 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 7308
// Function ID: 7309
// Name: ConversationVisibilityStore
2026-10-03 08:58:59 +00:00
// Dependencies: [504, 584, 2]
2026-07-23 10:11:24 +00:00
2026-10-09 10:00:15 +00:00
// Module 7308 (ConversationVisibilityStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let flag = true;
const DeviceSettingsStore = get_initializedDefault.DeviceSettingsStore;
2026-07-29 08:29:29 +00:00
class ConversationVisibilityStore extends DeviceSettingsStore {
2026-10-03 08:58:59 +00:00
initialize(highlightingEnabled) {
flag = undefined;
if (highlightingEnabled != null) {
flag = highlightingEnabled.highlightingEnabled;
}
if (flag == null) {
flag = true;
}
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
isHighlightingEnabled() {
return flag;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
getState() {
return { highlightingEnabled: flag };
}
getUserAgnosticState() {
return { highlightingEnabled: flag };
}
}
const prototype = ConversationVisibilityStore.prototype;
2026-07-29 08:29:29 +00:00
ConversationVisibilityStore.displayName = "ConversationVisibilityStore";
ConversationVisibilityStore.persistKey = "ConversationVisibilityStore";
2026-10-03 08:58:59 +00:00
const obj = {
2026-07-20 16:05:17 +00:00
CONVERSATIONS_TOGGLE_HIGHLIGHTING: function handleToggleHighlighting() {
2026-10-03 08:58:59 +00:00
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
};
const conversationVisibilityStore = new ConversationVisibilityStore(DispatcherDefault, obj);
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;