Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created January 7, 2023 15:55
Show Gist options
  • Save FlutterWiz/460bb7f8f4966367de5623d7716a10ab to your computer and use it in GitHub Desktop.
Save FlutterWiz/460bb7f8f4966367de5623d7716a10ab to your computer and use it in GitHub Desktop.
@override
Stream<ChatUserModel> get chatAuthStateChanges {
return streamChatClient.state.currentUserStream.map(
(OwnUser? user) {
if (user == null) {
return ChatUserModel.empty();
} else {
return user.toDomain();
}
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment