Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunter: saved messages #1466

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Chunter: saved messages #1466

merged 2 commits into from
Apr 21, 2022

Conversation

budaeva
Copy link
Contributor

@budaeva budaeva commented Apr 20, 2022

Signed-off-by: budaeva irina.budaeva@xored.com

close #1433

Signed-off-by: budaeva <irina.budaeva@xored.com>
@@ -100,8 +101,14 @@ export class TBacklink extends TComment implements Backlink {
backlinkClass!: Ref<Class<Doc>>
}

@Model(chunter.class.SavedMessages, preference.class.Preference)
export class TSavedMessages extends TPreference implements SavedMessages {
@Prop(ArrOf(TypeRef(chunter.class.ChunterMessage)), chunter.string.SavedMessages)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrOf( is extra

@Model(chunter.class.SavedMessages, preference.class.Preference)
export class TSavedMessages extends TPreference implements SavedMessages {
@Prop(ArrOf(TypeRef(chunter.class.ChunterMessage)), chunter.string.SavedMessages)
savedMessageId!: Ref<ChunterMessage>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't use attachedTo?

* @public
*/
export interface SavedMessages extends Preference {
savedMessageId: Ref<ChunterMessage>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't use attachedTo: Ref<ChunterMessage>

Signed-off-by: budaeva <irina.budaeva@xored.com>
@budaeva budaeva requested a review from BykhovDenis April 21, 2022 05:00
@BykhovDenis BykhovDenis merged commit 1371131 into main Apr 21, 2022
@BykhovDenis BykhovDenis deleted the saved-items-1433 branch April 21, 2022 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chunter: Saved items
2 participants