fix(core): handle messageEmpty in dialog.lastMessage
This commit is contained in:
parent
2ee7166682
commit
f85ff93d23
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ export class Dialog {
|
||||||
const cid = this.peer.id
|
const cid = this.peer.id
|
||||||
|
|
||||||
if (this._messages.has(cid)) {
|
if (this._messages.has(cid)) {
|
||||||
return new Message(this._messages.get(cid)!, this._peers)
|
const msg = this._messages.get(cid)!
|
||||||
|
if (msg._ === 'messageEmpty') return null
|
||||||
|
|
||||||
|
return new Message(msg, this._peers)
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|
Loading…
Reference in a new issue