onIdentityChanged method
- UserId me
override
Handles identity changes to the provided UserId.
Implementation
@override
void onIdentityChanged(UserId me) {
super.onIdentityChanged(me);
Log.debug('onIdentityChanged($me)', '$runtimeType');
_remoteSubscription?.close(immediate: true);
if (!me.isLocal) {
_initRemoteSubscription();
count.value = _sessionLocal.data[me]?.blocklistCount ?? 0;
}
}