setMeta method

  1. @override
Future<CtrlMessage> setMeta(
  1. SetParams params
)
override

setMeta to TopicFnd resets contact list in addition to sending the message

Implementation

@override
Future<CtrlMessage> setMeta(SetParams params) async {
  var ctrl = await super.setMeta(params);
  if (_contacts.isNotEmpty) {
    _contacts = {};
    onSubsUpdated.add([]);
  }
  return ctrl;
}