Commit c4db9729 authored by Linshizhi's avatar Linshizhi

check is grp msg or not.

parent 51ec9c11
import { makeMsg, MESSAGE_TYPE, typeOfMsg } from './encGrooupMsg.js';
import { isEncGrpMsg, makeMsg, MESSAGE_TYPE, typeOfMsg } from './encGrooupMsg.js';
import { Observable } from 'rxjs';
......@@ -123,6 +123,10 @@ export class WW extends Observable {
// status of WW will map to local variables.
#monitor() {
this.subscribe(msg => {
if (!isEncGrpMsg(msg))
return;
switch (typeOfMsg(msg)) {
case MESSAGE_TYPE.INIT:
this.#remoteInited = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment