Skip to content

Commit

Permalink
ContactListItem: Drop channel indicator and don't fetch has_email c…
Browse files Browse the repository at this point in the history
…olumn
  • Loading branch information
sukhwinder33445 committed Jan 30, 2025
1 parent ede7734 commit 2402c2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions application/controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public function init()

public function indexAction()
{
$contacts = Contact::on($this->db)
->withColumns('has_email');
$contacts = Contact::on($this->db);

$limitControl = $this->createLimitControl();
$paginationControl = $this->createPaginationControl($contacts);
Expand Down
11 changes: 0 additions & 11 deletions library/Notifications/Widget/ItemList/ContactListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ protected function assembleVisual(BaseHtmlElement $visual): void
));
}

protected function assembleFooter(BaseHtmlElement $footer): void
{
$contactIcons = new HtmlElement('div', Attributes::create(['class' => 'contact-icons']));

if (isset($this->item->has_email) && $this->item->has_email) {
$contactIcons->addHtml(new Icon('at'));
}

$footer->addHtml($contactIcons);
}

protected function assembleTitle(BaseHtmlElement $title): void
{
$title->addHtml(new Link(
Expand Down

0 comments on commit 2402c2e

Please sign in to comment.