storeUserDeviceKey method

  1. @override
Future<void> storeUserDeviceKey(
  1. String userId,
  2. String deviceId,
  3. String content,
  4. bool verified,
  5. bool blocked,
  6. int lastActive,
)
override

Implementation

@override
Future<void> storeUserDeviceKey(String userId, String deviceId,
    String content, bool verified, bool blocked, int lastActive) async {
  await _userDeviceKeysBox.put(TupleKey(userId, deviceId).toString(), {
    'user_id': userId,
    'device_id': deviceId,
    'content': content,
    'verified': verified,
    'blocked': blocked,
    'last_active': lastActive,
    'last_sent_message': '',
  });
  return;
}