allow users to disable third party notice

This commit is contained in:
hippoz 2022-10-30 21:34:13 +02:00
parent a7bb23060b
commit d7c986a001
No known key found for this signature in database
GPG key ID: 7C52899193467641
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
<script>
import { quadInOut } from "svelte/easing";
import { maybeFly, maybeFlyIf } from "../animations";
import { getItem } from "../storage";
import { channels, gatewayStatus, overlayStore, selectedChannel, showSidebar, smallViewport, userInfoStore, unreadStore, OverlayType, thirdPartyServicePresenceStore } from "../stores";
import ThirdPartyNotice from "./overlays/ThirdPartyNotice.svelte";
import UserTopBar from "./UserTopBar.svelte";
@ -44,7 +45,7 @@
<span class="sidebar-button-text">Settings</span>
</button>
</div>
{#if $thirdPartyServicePresenceStore}
{#if $thirdPartyServicePresenceStore && getItem("ui:showThirdPartyNotice")}
<div class="top-bar darker">
<span class="material-icons-outlined">cloud</span>
<span class="text-small top-bar-heading">some third party services may have additional terms</span>

View file

@ -11,6 +11,7 @@ const defaults = {
"ui:stateful:presistSelectedChannel": true,
"ui:showSidebarToggle": false,
"ui:alwaysUseMobileChatBar": false,
"ui:showThirdPartyNotice": true,
"ui:online:processRemoteTypingEvents": true,
"ui:online:processRemotePresenceEvents": true,
"ui:online:loadMessageHistory": true,