fix search alias doesn't match in address book
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
9ac4346850
commit
6045b5fead
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user