Skip to content

Commit

Permalink
fix: Display again contacts in in page menu
Browse files Browse the repository at this point in the history
Following previous fix that avoid _testHash to crash (99ae740),
contacts were
not displayed because we consider them as identities, so we
never removed the "hidden" class.

Let's remove it if identities "hidden" class is removed.
  • Loading branch information
zatteo committed May 13, 2024
1 parent e9b767f commit e134962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/browser/src/inPageMenu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ function _testHash() {
if (oldFieldData && oldFieldData[key] === hash[key]) {
continue;
}
if (hash[key]) {
// At this point, a contact is considered as an identity so we need to remove the hidden class
// for existing type and also for contact if identity exists
if (hash[key] || (key === "contact" && hash["identity"])) {
titleEl.textContent = options.title;
options.updateFn();
rowsEl.classList.remove("hidden");
Expand Down

0 comments on commit e134962

Please sign in to comment.