refactor(llc): rename _computeInitialUnread to _computeUnread

This commit is contained in:
Salvatore Giordano
2021-08-31 13:38:51 +02:00
parent cfd66a451e
commit ae18eff8e8
@@ -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) =>