mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-02 22:34:56 -04:00
debugging work
This commit is contained in:
parent
739df7c427
commit
d6b1c20906
71 changed files with 4155 additions and 3616 deletions
|
@ -13,7 +13,7 @@ import '../../proto/proto.dart' as proto;
|
|||
|
||||
//////////////////////////////////////////////////
|
||||
// Mutable state for per-account chat list
|
||||
typedef ChatListCubitState = DHTShortArrayBusyState<proto.Chat>;
|
||||
typedef ChatListCubitState = DHTShortArrayCubitState<proto.Chat>;
|
||||
|
||||
class ChatListCubit extends DHTShortArrayCubit<proto.Chat>
|
||||
with StateMapFollowable<ChatListCubitState, TypedKey, proto.Chat> {
|
||||
|
|
|
@ -8,7 +8,6 @@ import 'package:veilid_support/veilid_support.dart';
|
|||
|
||||
import '../../contacts/contacts.dart';
|
||||
import '../../proto/proto.dart' as proto;
|
||||
import '../../proto/proto.dart';
|
||||
import '../../theme/theme.dart';
|
||||
import '../chat_list.dart';
|
||||
|
||||
|
@ -26,7 +25,7 @@ class ChatListWidget extends StatelessWidget {
|
|||
}
|
||||
|
||||
List<proto.Chat> _itemFilter(IMap<proto.TypedKey, proto.Contact> contactMap,
|
||||
IList<DHTShortArrayElementState<Chat>> chatList, String filter) {
|
||||
IList<OnlineElementState<proto.Chat>> chatList, String filter) {
|
||||
final lowerValue = filter.toLowerCase();
|
||||
return chatList.map((x) => x.value).where((c) {
|
||||
switch (c.whichKind()) {
|
||||
|
@ -48,7 +47,6 @@ class ChatListWidget extends StatelessWidget {
|
|||
}
|
||||
|
||||
@override
|
||||
// ignore: prefer_expression_function_bodies
|
||||
Widget build(BuildContext context) {
|
||||
final contactListV = context.watch<ContactListCubit>().state;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue