zulip/web/src/giphy_state.ts

9 lines
219 B
TypeScript

import {realm} from "./state_data";
export function is_giphy_enabled(): boolean {
return (
realm.giphy_api_key !== "" &&
realm.realm_giphy_rating !== realm.giphy_rating_options.disabled.id
);
}