mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Remove extra query params and apply (#5546)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
f75641125f
commit
7ee0b0060c
@ -17,7 +17,6 @@
|
||||
import { Doc, Ref, SortingOrder } from '@hcengineering/core'
|
||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Component, Grid, Label, Lazy, Spinner } from '@hcengineering/ui'
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
import ActivityExtensionComponent from './ActivityExtension.svelte'
|
||||
import ActivityFilter from './ActivityFilter.svelte'
|
||||
@ -49,7 +48,7 @@
|
||||
|
||||
const res = activityMessagesQuery.query(
|
||||
activity.class.ActivityMessage,
|
||||
{ attachedTo: objectId, hidden: { $ne: true } },
|
||||
{ attachedTo: objectId },
|
||||
(result: ActivityMessage[]) => {
|
||||
void combineActivityMessages(result, order).then((messages) => {
|
||||
activityMessages = messages
|
||||
|
@ -159,7 +159,7 @@ export class ChannelDataProvider implements IChannelDataProvider {
|
||||
|
||||
this.metadataQuery.query(
|
||||
this.msgClass,
|
||||
{ attachedTo: this.chatId, hidden: { $ne: true } },
|
||||
{ attachedTo: this.chatId },
|
||||
(res) => {
|
||||
this.updatesDates(res)
|
||||
this.metadataStore.set(res)
|
||||
@ -235,7 +235,6 @@ export class ChannelDataProvider implements IChannelDataProvider {
|
||||
this.msgClass,
|
||||
{
|
||||
attachedTo: this.chatId,
|
||||
hidden: { $ne: true },
|
||||
...(this.tailStart !== undefined ? { createdOn: { $gte: this.tailStart } } : {})
|
||||
},
|
||||
async (res) => {
|
||||
|
@ -19,7 +19,6 @@
|
||||
import { Channel } from '@hcengineering/chunter'
|
||||
import { ActivityMessagesFilter } from '@hcengineering/activity'
|
||||
import contact from '@hcengineering/contact'
|
||||
import { DocNotifyContext } from '@hcengineering/notification'
|
||||
|
||||
import Header from './Header.svelte'
|
||||
import chunter from '../plugin'
|
||||
|
@ -101,7 +101,7 @@
|
||||
|
||||
async function onMessage (event: CustomEvent) {
|
||||
loading = true
|
||||
const doneOp = await getClient().measure(`chunter.create.${_class}`)
|
||||
const doneOp = await getClient().measure(`chunter.create.${_class} ${object._class}`)
|
||||
try {
|
||||
draftController.remove()
|
||||
inputRef.removeDraft(false)
|
||||
|
@ -491,7 +491,7 @@ async function OnChannelMembersChanged (tx: TxUpdateDoc<Channel>, control: Trigg
|
||||
lastViewedTimestamp: tx.modifiedOn
|
||||
})
|
||||
|
||||
await control.apply([updateTx], true)
|
||||
res.push(updateTx)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -411,7 +411,7 @@ export async function pushInboxNotifications (
|
||||
const updateTx = control.txFactory.createTxUpdateDoc(context._class, context.space, context._id, {
|
||||
lastUpdateTimestamp: modifiedOn
|
||||
})
|
||||
await control.apply([updateTx], true)
|
||||
res.push(updateTx)
|
||||
}
|
||||
docNotifyContextId = context._id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user