mobile unread chat

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-10 09:40:41 +08:00
parent 65529b10b6
commit 6c6f6c081e
5 changed files with 82 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ class HomePage extends StatefulWidget {
class _HomePageState extends State<HomePage> {
var _selectedIndex = 0;
int get selectedIndex => _selectedIndex;
final List<PageShape> _pages = [];
void refreshPages() {
@@ -82,6 +83,8 @@ class _HomePageState extends State<HomePage> {
gFFI.chatModel.hideChatWindowOverlay();
}
_selectedIndex = index;
gFFI.chatModel
.mobileClearClientUnread(gFFI.chatModel.currentKey.connId);
}),
),
body: _pages.elementAt(_selectedIndex),