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'; import { Observable } from 'rxjs';
...@@ -123,6 +123,10 @@ export class WW extends Observable { ...@@ -123,6 +123,10 @@ export class WW extends Observable {
// status of WW will map to local variables. // status of WW will map to local variables.
#monitor() { #monitor() {
this.subscribe(msg => { this.subscribe(msg => {
if (!isEncGrpMsg(msg))
return;
switch (typeOfMsg(msg)) { switch (typeOfMsg(msg)) {
case MESSAGE_TYPE.INIT: case MESSAGE_TYPE.INIT:
this.#remoteInited = true; 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