setLastSentMessageUserDeviceKey method

  1. @override
Future<void> setLastSentMessageUserDeviceKey(
  1. String lastSentMessage,
  2. String userId,
  3. String deviceId
)
override

Implementation

@override
Future<void> setLastSentMessageUserDeviceKey(
    String lastSentMessage, String userId, String deviceId) async {
  final raw =
      await _userDeviceKeysBox.get(TupleKey(userId, deviceId).toString());
  raw!['last_sent_message'] = lastSentMessage;
  await _userDeviceKeysBox.put(
    TupleKey(userId, deviceId).toString(),
    raw,
  );
}