diff --git a/CHANGELOG.md b/CHANGELOG.md index 56cf51b..79666c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ # Changelog ## Canary -* Fixed caching issue that causes cache misses on charater page metadata -* Fixed ad posting issue that sometimes disconnects characters if multiple characters are in use +* Fixed a caching issue that caused cache misses on character page metadata +* Fixed rate limit issues that sometimes disconnected characters when multiple characters were connected * URL preview fixes for Redgifs, Gelbooru, Tumblr, and Gifmixxx * All dependencies are now up to date +* F-Chat Rising now flushes character profiles out of its cache after 30 days ## 1.0.1 diff --git a/chat/core.ts b/chat/core.ts index 88ba6d8..4c08518 100644 --- a/chat/core.ts +++ b/chat/core.ts @@ -6,6 +6,7 @@ import {Settings as SettingsImpl} from './common'; import Conversations from './conversations'; import {Channel, Character, Connection, Conversation, Logs, Notifications, Settings, State as StateInterface} from './interfaces'; import { AdCoordinatorGuest } from './ads/ad-coordinator-guest'; +import { GeneralSettings } from '../electron/common'; function createBBCodeParser(): BBCodeParser { const parser = new BBCodeParser(); @@ -82,8 +83,9 @@ const data = { } }; -export function init(this: any, connection: Connection, logsClass: new() => Logs, settingsClass: new() => Settings.Store, - notificationsClass: new() => Notifications): void { +export function init( + this: any, connection: Connection, settings: GeneralSettings, logsClass: new() => Logs, + settingsClass: new() => Settings.Store, notificationsClass: new() => Notifications): void { data.connection = connection; data.logs = new logsClass(); data.settingsStore = new settingsClass(); @@ -91,8 +93,7 @@ export function init(this: any, connection: Connection, logsClass: new() => Logs data.cache = new CacheManager(); data.adCoordinator = new AdCoordinatorGuest(); - // tslint:disable-next-line no-floating-promises - data.cache.start(); + (data.state as any).generalSettings = settings; data.register('characters', Characters(connection)); data.register('channels', Channels(connection, core.characters)); diff --git a/electron/Index.vue b/electron/Index.vue index 93ddbe8..0053baa 100644 --- a/electron/Index.vue +++ b/electron/Index.vue @@ -3,8 +3,16 @@