feat: use notes instead of posts

This commit is contained in:
2023-06-11 11:21:19 +02:00
parent 203f5f2841
commit d50787e3f2
8 changed files with 34 additions and 31 deletions

View File

@ -195,6 +195,15 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
window.localStorage.removeItem(LegacyKeys.RelayListKey);
window.localStorage.removeItem(LegacyKeys.FollowList);
window.localStorage.removeItem(LegacyKeys.NotificationsReadItem);
// replace default tab with notes
for (const [, v] of this.#accounts) {
if ((v.preferences.defaultRootTab as string) === "posts") {
v.preferences.defaultRootTab = "notes";
didMigrate = true;
}
}
if (didMigrate) {
console.debug("Finished migration to MultiAccountStore");
this.#save();