decord/source/modules/conversations/ConversationVisibilityStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

42 lines
1.4 KiB
TypeScript

// Module ID: 7597
// Function ID: 7598
// Name: initialize
// Dependencies: [504, 573, 2]
// Module 7597 (initialize)
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
let c0 = true;
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
class ConversationVisibilityStore extends DeviceSettingsStore {
}
const prototype = ConversationVisibilityStore.prototype;
prototype["initialize"] = function initialize(highlightingEnabled) {
let flag;
if (highlightingEnabled != null) {
flag = highlightingEnabled.highlightingEnabled;
}
if (flag == null) {
flag = true;
}
};
prototype["isHighlightingEnabled"] = function isHighlightingEnabled() {
return c0;
};
prototype["getState"] = function getState() {
return { highlightingEnabled: c0 };
};
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { highlightingEnabled: c0 };
};
ConversationVisibilityStore.displayName = "ConversationVisibilityStore";
ConversationVisibilityStore.persistKey = "ConversationVisibilityStore";
const conversationVisibilityStore = new ConversationVisibilityStore(dispatcherDefault, {
CONVERSATIONS_TOGGLE_HIGHLIGHTING: function handleToggleHighlighting() {
closure_0 = !closure_0;
}
});
const result = require("set").fileFinishedImporting("modules/conversations/ConversationVisibilityStore.tsx");
export default conversationVisibilityStore;