refactor(llc): rename _computeInitialUnread to _computeUnread
This commit is contained in:
@@ -1488,7 +1488,7 @@ class ChannelClientState {
|
||||
|
||||
_listenMemberRemoved();
|
||||
|
||||
_computeInitialUnread();
|
||||
_computeUnread();
|
||||
|
||||
_startCleaning();
|
||||
|
||||
@@ -1512,7 +1512,7 @@ class ChannelClientState {
|
||||
|
||||
final _subscriptions = <StreamSubscription>[];
|
||||
|
||||
void _computeInitialUnread() {
|
||||
void _computeUnread() {
|
||||
final userRead = channelState.read.firstWhereOrNull(
|
||||
(r) => r.user.id == _channel._client.state.currentUser?.id,
|
||||
);
|
||||
@@ -1935,7 +1935,7 @@ class ChannelClientState {
|
||||
pinnedMessages: updatedState.pinnedMessages,
|
||||
);
|
||||
|
||||
_computeInitialUnread();
|
||||
_computeUnread();
|
||||
}
|
||||
|
||||
int _sortByCreatedAt(Message a, Message b) =>
|
||||
|
||||
Reference in New Issue
Block a user