Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
parent
10275e0339
commit
c3f5993126
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
// See LICENSE.txt for license information.
|
// See LICENSE.txt for license information.
|
||||||
import {Utils} from './utils'
|
import {Utils} from './utils'
|
||||||
import {Block} from './blocks/block'
|
import {Block} from './blocks/block'
|
||||||
|
import {OctoUtils} from './octoUtils'
|
||||||
|
|
||||||
// These are outgoing commands to the server
|
// These are outgoing commands to the server
|
||||||
type WSCommand = {
|
type WSCommand = {
|
||||||
|
@ -232,7 +233,7 @@ class WSClient {
|
||||||
|
|
||||||
private queueUpdateNotification(block: Block) {
|
private queueUpdateNotification(block: Block) {
|
||||||
this.updatedBlocks = this.updatedBlocks.filter((o) => o.id !== block.id) // Remove existing queued update
|
this.updatedBlocks = this.updatedBlocks.filter((o) => o.id !== block.id) // Remove existing queued update
|
||||||
this.updatedBlocks.push(block)
|
this.updatedBlocks.push(OctoUtils.hydrateBlock(block))
|
||||||
if (this.updateTimeout) {
|
if (this.updateTimeout) {
|
||||||
clearTimeout(this.updateTimeout)
|
clearTimeout(this.updateTimeout)
|
||||||
this.updateTimeout = undefined
|
this.updateTimeout = undefined
|
||||||
|
|
Loading…
Reference in a new issue