getLastSentMessageUserDeviceKey method

  1. @override
Future<List<String>> getLastSentMessageUserDeviceKey(
  1. String userId,
  2. String deviceId
)
override

Implementation

@override
Future<List<String>> getLastSentMessageUserDeviceKey(
    String userId, String deviceId) async {
  final raw =
      await _userDeviceKeysBox.get(TupleKey(userId, deviceId).toString());
  if (raw == null) return <String>[];
  return <String>[raw['last_sent_message']];
}