40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
// Module ID: 7098
|
|
// Function ID: 7099
|
|
// Name: initialize
|
|
// Dependencies: [589, 709, 2]
|
|
|
|
// Module 7098 (initialize)
|
|
import { DeviceSettingsStore } from "initialize";
|
|
|
|
let c0 = true;
|
|
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(require("dispatcher"), {
|
|
CONVERSATIONS_TOGGLE_HIGHLIGHTING: function handleToggleHighlighting() {
|
|
closure_0 = !closure_0;
|
|
}
|
|
});
|
|
const result = require("set").fileFinishedImporting("modules/conversations/ConversationVisibilityStore.tsx");
|
|
|
|
export default conversationVisibilityStore;
|