fetchDeviceList method

Future<List<int>?> fetchDeviceList(
  1. String jid
)

For usage with omemo_dart's OmemoManager

Implementation

Future<List<int>?> fetchDeviceList(String jid) async {
  final result = await getDeviceList(JID.fromString(jid));
  if (result.isType<OmemoError>()) return null;

  return result.get<List<int>>();
}