latestTrackableMessageId top-level property
final
Implementation
final latestTrackableMessageId =
StateProvider.autoDispose.family<String?, String>((ref, roomId) {
return ref.watch(
chatStateProvider(roomId).select(
(value) =>
// find the last remote item we can use for tracking
value.messages.lastOrNull?.remoteId,
),
);
});