getOurQRMode method

QRMode getOurQRMode()

Implementation

QRMode getOurQRMode() {
  QRMode mode = QRMode.verifyOtherUser;
  if (client.userID == userId) {
    if (client.encryption != null &&
        client.encryption!.enabled &&
        (client.userDeviceKeys[client.userID]?.masterKey?.directVerified ??
            false)) {
      mode = QRMode.verifySelfTrusted;
    } else {
      mode = QRMode.verifySelfUntrusted;
    }
  }
  return mode;
}