diff --git a/models/document/src/index.ts b/models/document/src/index.ts index 9b28d92f2d..e0b173166e 100644 --- a/models/document/src/index.ts +++ b/models/document/src/index.ts @@ -394,6 +394,11 @@ function defineDocument (builder: Builder): void { titleProvider: document.function.DocumentTitleProvider }) + builder.createDoc(activity.class.ActivityExtension, core.space.Model, { + ofClass: document.class.Document, + components: { input: chunter.component.ChatMessageInput } + }) + // Search builder.createDoc( diff --git a/plugins/chunter-resources/src/components/DirectIcon.svelte b/plugins/chunter-resources/src/components/DirectIcon.svelte index 6bf82da9c3..dd3fd19108 100644 --- a/plugins/chunter-resources/src/components/DirectIcon.svelte +++ b/plugins/chunter-resources/src/components/DirectIcon.svelte @@ -35,6 +35,12 @@ getDmPersons(client, value).then((res) => { persons = res }) + + let avatarSize = size + + $: if (size === 'small') { + avatarSize = 'tiny' + } {#if persons.length === 0 && value} @@ -42,7 +48,7 @@ {/if} {#if persons.length === 1} - + {/if} {#if persons.length > 1 && size === 'medium'} @@ -64,7 +70,12 @@ {/if} {#if persons.length > 1 && size !== 'medium'} - _id)} {size} limit={visiblePersons} /> + _id)} + size={avatarSize} + limit={visiblePersons} + /> {/if}