mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
Add log (#67)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -1023,6 +1023,7 @@ export class MessagesQuery implements PagedQuery<Message, MessageQueryParams> {
|
||||
|
||||
private async onBlobAttachedEvent (event: BlobAttachedEvent): Promise<void> {
|
||||
if (this.params.files !== true || event.cardId !== this.params.card) return
|
||||
console.log('onFileCreatedEvent', event)
|
||||
this.updateFilesCache(event.messageId, [event.blob])
|
||||
if (this.result instanceof Promise) this.result = await this.result
|
||||
|
||||
@@ -1034,6 +1035,8 @@ export class MessagesQuery implements PagedQuery<Message, MessageQueryParams> {
|
||||
this.result.update(message)
|
||||
await this.notify()
|
||||
}
|
||||
} else {
|
||||
console.log('no message for file', event)
|
||||
}
|
||||
|
||||
const fromNextBuffer = this.next.buffer.find((it) => it.id === event.messageId)
|
||||
|
||||
Reference in New Issue
Block a user