From f2b6d8b8b1b71fc448acf28493b3f140575aef1c Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Fri, 27 Nov 2020 14:58:14 -0600 Subject: [PATCH] Minor --- CHANGELOG.md | 2 +- chat/Chat.vue | 4 ++++ chat/ChatView.vue | 3 ++- chat/SettingsView.vue | 15 ++++++++++++++- chat/ads/ConversationAdSettings.vue | 4 +++- chat/common.ts | 2 ++ chat/conversations.ts | 4 ++++ chat/interfaces.ts | 2 ++ site/NoteStatus.vue | 18 ++++++++---------- site/note-checker.ts | 18 ++++++++++++++++-- site/site-session.ts | 16 ++++++---------- 11 files changed, 62 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 437a2ca..6d1693c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Canary * Show number of unread notes and messages in the bottom right corner -* Fixed max ad length for automated ads to 50,000 characters +* Fixed max ad length for automated ads * Fixed 'unsure' sexual orientation to display correctly in character preview diff --git a/chat/Chat.vue b/chat/Chat.vue index da9df2b..e11da21 100644 --- a/chat/Chat.vue +++ b/chat/Chat.vue @@ -140,6 +140,8 @@ import {InlineDisplayMode} from '../interfaces'; AdManager.onConnectionClosed(); core.adCoordinator.clear(); + + // tslint:disable-next-line:no-floating-promises core.siteSession.onConnectionClosed(); document.title = l('title'); @@ -174,6 +176,8 @@ import {InlineDisplayMode} from '../interfaces'; this.connected = true; core.notifications.playSound('login'); document.title = l('title.connected', core.connection.character); + + // tslint:disable-next-line:no-floating-promises core.siteSession.onConnectionEstablished(); }); core.watch(() => core.conversations.hasNew, (hasNew) => { diff --git a/chat/ChatView.vue b/chat/ChatView.vue index ecdd55f..88208c4 100644 --- a/chat/ChatView.vue +++ b/chat/ChatView.vue @@ -98,7 +98,7 @@ - + /me @@ -152,6 +152,7 @@ characterImage = characterImage; conversations = core.conversations; getStatusIcon = getStatusIcon; + coreState = core.state; keydownListener!: (e: KeyboardEvent) => void; focusListener!: () => void; blurListener!: () => void; diff --git a/chat/SettingsView.vue b/chat/SettingsView.vue index 4985d25..6de751a 100644 --- a/chat/SettingsView.vue +++ b/chat/SettingsView.vue @@ -183,6 +183,15 @@ +
Misc
+ +
+ +
+