diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:53:08 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:53:08 -0500 |
commit | bf39791f011f19c6ff192eb223e15259dc9de53a (patch) | |
tree | 2dd108a78cae54565f18c11aade32cc028bd2e5b /src/state/models | |
parent | c5ab005908457761abe9a1d67d7e1a4a2796a0fe (diff) | |
download | voidsky-bf39791f011f19c6ff192eb223e15259dc9de53a.tar.zst |
Implement a couple missing bits
Diffstat (limited to 'src/state/models')
-rw-r--r-- | src/state/models/notifications-view.ts | 3 | ||||
-rw-r--r-- | src/state/models/shell.ts | 11 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index 620f0ffa6..5528b9f08 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -331,7 +331,8 @@ function groupNotifications( for (const item2 of items2) { if ( item.reason === item2.reason && - item.reasonSubject === item2.reasonSubject + item.reasonSubject === item2.reasonSubject && + item.author.did !== item2.author.did ) { item2.additional = item2.additional || [] item2.additional.push(item) diff --git a/src/state/models/shell.ts b/src/state/models/shell.ts index 80ecbdd48..3a5376421 100644 --- a/src/state/models/shell.ts +++ b/src/state/models/shell.ts @@ -9,11 +9,20 @@ export class TabsSelectorModel { } } +export interface LinkActionsModelOpts { + newTab?: boolean +} export class LinkActionsModel { name = 'link-actions' + newTab: boolean - constructor(public href: string, public title: string) { + constructor( + public href: string, + public title: string, + opts?: LinkActionsModelOpts, + ) { makeAutoObservable(this) + this.newTab = typeof opts?.newTab === 'boolean' ? opts.newTab : true } } |