messages wip

This commit is contained in:
Christien Rioux 2024-05-27 18:04:00 -04:00
parent 17f6dfce46
commit 9c5feed732
18 changed files with 274 additions and 171 deletions

View file

@ -34,7 +34,7 @@ class HomeAccountReadyChatState extends State<HomeAccountReadyChat> {
return const EmptyChatWidget();
}
return ChatComponent.builder(
remoteConversationRecordKey: activeChatRemoteConversationKey);
localConversationRecordKey: activeChatRemoteConversationKey);
}
@override

View file

@ -66,13 +66,13 @@ class _HomeAccountReadyMainState extends State<HomeAccountReadyMain> {
Material(color: Colors.transparent, child: buildUserPanel()));
Widget buildTabletRightPane(BuildContext context) {
final activeChatRemoteConversationKey =
final activeChatLocalConversationKey =
context.watch<ActiveChatCubit>().state;
if (activeChatRemoteConversationKey == null) {
if (activeChatLocalConversationKey == null) {
return const EmptyChatWidget();
}
return ChatComponent.builder(
remoteConversationRecordKey: activeChatRemoteConversationKey);
localConversationRecordKey: activeChatLocalConversationKey);
}
// ignore: prefer_expression_function_bodies