Added: option to enable additional account unread messages count

This commit is contained in:
the-djmaze 2022-12-22 10:01:25 +01:00
parent bad33e6dc4
commit 215767ed9b
45 changed files with 96 additions and 39 deletions

View file

@ -5,6 +5,7 @@ import { SettingsCapa, SettingsGet } from 'Common/Globals';
import { AccountUserStore } from 'Stores/User/Account';
import { IdentityUserStore } from 'Stores/User/Identity';
import { SettingsUserStore } from 'Stores/User/Settings';
import Remote from 'Remote/User/Fetch';
import { showScreenPopup } from 'Knoin/Knoin';
@ -25,6 +26,9 @@ export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
this.accountForDeletion = ko.observable(null).askDeleteHelper();
this.identityForDeletion = ko.observable(null).askDeleteHelper();
this.showUnread = SettingsUserStore.showUnreadCount;
SettingsUserStore.showUnreadCount.subscribe(value => Remote.saveSetting('ShowUnreadCount', value));
// this.additionalAccounts = koComputable(() => AccountUserStore.filter(account => account.isAdditional()));
}