updateShowGroupId method

void updateShowGroupId()

更新显示群组id(可能退出群组了,则重置显示群组id为0)

Implementation

void updateShowGroupId() {
  //当前有显示群组
  if(showGroupId>0){
    dynamic group=getGroup(showGroupId);
    //群组不在了,重置显示群组id为0
    if(group==null){
      setShowGroupId(0);
    }
  }
}