# fetchDeviceBundle method

Future <OmemoBundle?> fetchDeviceBundle(

1. String jid,
2. int id

)

For usage with omemo_dart's OmemoManager

## Implementation

    Future<omemo.OmemoBundle?> fetchDeviceBundle(String jid, int id) async {
      final result = await retrieveDeviceBundle(JID.fromString(jid), id);
      if (result.isType<OmemoError>()) return null;

      return result.get<omemo.OmemoBundle>();
    }