mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-13 00:15:42 -04:00
more refactor
This commit is contained in:
parent
b83aa3a64b
commit
c7b541c643
45 changed files with 860 additions and 336 deletions
37
lib/chat/views/build_chat_component.dart
Normal file
37
lib/chat/views/build_chat_component.dart
Normal file
|
@ -0,0 +1,37 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../tools/tools.dart';
|
||||
|
||||
Widget buildChatComponent() {
|
||||
// final contactList = ref.watch(fetchContactListProvider).asData?.value ??
|
||||
// const IListConst([]);
|
||||
|
||||
// final activeChat = ref.watch(activeChatStateProvider);
|
||||
// if (activeChat == null) {
|
||||
// return const EmptyChatWidget();
|
||||
// }
|
||||
|
||||
// final activeAccountInfo =
|
||||
// ref.watch(fetchActiveAccountProvider).asData?.value;
|
||||
// if (activeAccountInfo == null) {
|
||||
// return const EmptyChatWidget();
|
||||
// }
|
||||
|
||||
// final activeChatContactIdx = contactList.indexWhere(
|
||||
// (c) =>
|
||||
// proto.TypedKeyProto.fromProto(c.remoteConversationRecordKey) ==
|
||||
// activeChat,
|
||||
// );
|
||||
// if (activeChatContactIdx == -1) {
|
||||
// ref.read(activeChatStateProvider.notifier).state = null;
|
||||
// return const EmptyChatWidget();
|
||||
// }
|
||||
// final activeChatContact = contactList[activeChatContactIdx];
|
||||
|
||||
// return ChatComponent(
|
||||
// activeAccountInfo: activeAccountInfo,
|
||||
// activeChat: activeChat,
|
||||
// activeChatContact: activeChatContact);
|
||||
// }
|
||||
return Builder(builder: waitingPage);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue