|
|
@ -25,9 +25,7 @@ enum SelectMode { normal, share, select }
|
|
|
|
enum PopupMenuAction { settings, invite, newGroup, setStatus, archive }
|
|
|
|
enum PopupMenuAction { settings, invite, newGroup, setStatus, archive }
|
|
|
|
|
|
|
|
|
|
|
|
class ChatList extends StatefulWidget {
|
|
|
|
class ChatList extends StatefulWidget {
|
|
|
|
final String activeChat;
|
|
|
|
const ChatList({Key key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
const ChatList({this.activeChat, Key key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
ChatListController createState() => ChatListController();
|
|
|
|
ChatListController createState() => ChatListController();
|
|
|
@ -42,6 +40,8 @@ class ChatListController extends State<ChatList> {
|
|
|
|
|
|
|
|
|
|
|
|
final selectedRoomIds = <String>{};
|
|
|
|
final selectedRoomIds = <String>{};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String get activeChat => VRouter.of(context).pathParameters['roomid'];
|
|
|
|
|
|
|
|
|
|
|
|
void _processIncomingSharedFiles(List<SharedMediaFile> files) {
|
|
|
|
void _processIncomingSharedFiles(List<SharedMediaFile> files) {
|
|
|
|
if (files?.isEmpty ?? true) return;
|
|
|
|
if (files?.isEmpty ?? true) return;
|
|
|
|
VRouter.of(context).push('/rooms');
|
|
|
|
VRouter.of(context).push('/rooms');
|
|
|
|