mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
Add chat fixes (#6682)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -19,4 +19,11 @@
|
||||
export let message: ActivityMessage
|
||||
</script>
|
||||
|
||||
<ActivityMessagePresenter value={message} hideFooter hoverStyles="filledHover" withShowMore={false} skipLabel />
|
||||
<ActivityMessagePresenter
|
||||
value={message}
|
||||
hideFooter
|
||||
hoverStyles="filledHover"
|
||||
withShowMore={false}
|
||||
attachmentImageSize="x-large"
|
||||
skipLabel
|
||||
/>
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
import activity, { ActivityMessage } from '@hcengineering/activity'
|
||||
import { PersonAccount } from '@hcengineering/contact'
|
||||
import { ActivityMessagePresenter } from '@hcengineering/activity-resources'
|
||||
import notification from '@hcengineering/notification'
|
||||
import attachment from '@hcengineering/attachment'
|
||||
|
||||
import chunter from '../../plugin'
|
||||
import Header from '../Header.svelte'
|
||||
@@ -32,15 +34,21 @@
|
||||
$: threadsQuery.query(
|
||||
activity.class.ActivityMessage,
|
||||
{
|
||||
replies: { $exists: true }
|
||||
replies: { $exists: true },
|
||||
[`${notification.mixin.Collaborators}.collaborators`]: me._id
|
||||
},
|
||||
(res) => {
|
||||
threads = res.filter(
|
||||
({ createdBy, repliedPersons, replies }) =>
|
||||
(replies !== undefined && replies > 0 && createdBy === me._id) || repliedPersons?.includes(me.person)
|
||||
)
|
||||
threads = res.filter(({ replies }) => (replies ?? 0) > 0)
|
||||
},
|
||||
{ sort: { modifiedOn: SortingOrder.Descending } }
|
||||
{
|
||||
sort: { modifiedOn: SortingOrder.Descending },
|
||||
lookup: {
|
||||
_id: {
|
||||
attachments: attachment.class.Attachment,
|
||||
reactions: activity.class.Reaction
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user