Created
January 7, 2023 15:55
-
-
Save FlutterWiz/460bb7f8f4966367de5623d7716a10ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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