routeMeta method

void routeMeta(
  1. MetaMessage meta
)

Called by Tinode

Process metadata message

Implementation

void routeMeta(MetaMessage meta) {
  if (meta.desc != null) {
    _lastDescUpdate = meta.ts!;
    processMetaDesc(meta.desc!);
  }

  if (meta.sub != null && meta.sub!.isNotEmpty) {
    _lastSubsUpdate = meta.ts!;
    processMetaSub(meta.sub!);
  }

  if (meta.del != null) {
    processDelMessages(meta.del!.clear!, meta.del!.delseq!);
  }

  if (meta.tags != null) {
    processMetaTags(meta.tags!);
  }

  if (meta.cred != null) {
    processMetaCreds(meta.cred!, false);
  }

  onMeta.add(meta);
}