fix search alias doesn't match in address book

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-17 17:20:08 +08:00
parent 9ac4346850
commit 6045b5fead

View File

@ -1352,7 +1352,7 @@ Future<bool> matchPeer(String searchText, Peer peer) async {
peer.username.toLowerCase().contains(searchText)) {
return true;
}
final alias = await bind.mainGetPeerOption(id: peer.id, key: 'alias');
final alias = peer.alias;
if (alias.isEmpty) {
return false;
}