💄 Optimize UX

This commit is contained in:
2025-10-26 03:00:09 +08:00
parent 92c0260ecd
commit 1e71ad33a6
2 changed files with 25 additions and 12 deletions

View File

@@ -238,10 +238,17 @@ class ChatListBodyWidget extends HookConsumerWidget {
room: item,
isDirect: item.type == 1,
onTap: () {
context.pushNamed(
'chatRoom',
pathParameters: {'id': item.id},
);
if (isWideScreen(context)) {
context.replaceNamed(
'chatRoom',
pathParameters: {'id': item.id},
);
} else {
context.pushNamed(
'chatRoom',
pathParameters: {'id': item.id},
);
}
},
);
},