Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/files/lib/Activity/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ protected function getDisplayNameFromAddressBook(string $search): string {
'strict_search' => true,
]);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
if (isset($contact['isLocalSystemBook']) || isset($contact['isVirtualAddressbook'])) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Activity/Providers/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function getDisplayNameFromAddressBook(string $search): string {
'strict_search' => true,
]);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
if (isset($contact['isLocalSystemBook']) || isset($contact['isVirtualAddressbook'])) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/sharebymail/lib/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected function getContactName($email) {
]);

foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
if (isset($contact['isLocalSystemBook']) || isset($contact['isVirtualAddressbook'])) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/private/Collaboration/Collaborators/RemotePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
'fullmatch' => false,
]);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
if (isset($contact['isLocalSystemBook']) || isset($contact['isVirtualAddressbook'])) {
continue;
}
if (isset($contact['CLOUD'])) {
Expand Down
3 changes: 1 addition & 2 deletions lib/private/Contacts/ContactsMenu/ContactsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ public function findOne(IUser $user, int $shareType, string $shareWith): ?IEntry
}
}
if ($shareType === 0 || $shareType === 6) {
$isLocal = $contact['isLocalSystemBook'] ?? false;
if ($contact['UID'] === $shareWith && $isLocal === true) {
if (($contact['isLocalSystemBook'] ?? false) === true && $contact['UID'] === $shareWith) {
$match = $contact;
break;
}
Expand Down
Loading