style(mobile): new_friends_screen 去掉无效空合并(dart analyze 清洁)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -36,8 +36,8 @@ class _NewFriendsScreenState extends State<NewFriendsScreen> {
|
||||
OpenIM.iMManager.friendshipManager.getFriendApplicationListAsApplicant(),
|
||||
]);
|
||||
final merged = <FriendApplicationInfo>[
|
||||
...(results[0] ?? <FriendApplicationInfo>[]),
|
||||
...(results[1] ?? <FriendApplicationInfo>[]),
|
||||
...results[0],
|
||||
...results[1],
|
||||
];
|
||||
merged.sort((a, b) {
|
||||
if ((a.handleResult ?? 0) == 0 && (b.handleResult ?? 0) != 0) return -1;
|
||||
|
||||
Reference in New Issue
Block a user