Skip to content

Commit

Permalink
fix accessing deprecated Mail Message properties (#42)
Browse files Browse the repository at this point in the history
* fix accessing deprecated property

* fix accessing deprecated property
  • Loading branch information
Ciki authored May 6, 2023
1 parent 1a77406 commit 8aa23f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/MailPanel.body.latte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{* Little magic here. Create iframe and then render message into it (needed because HTML messages) *}
{if $message->htmlBody !== NULL}
{$message->htmlBody|noescape}
{if $message->getHtmlBody() !== NULL}
{$message->getHtmlBody()|noescape}
{else}
<!doctype html>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion src/MailPanel.latte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<a target="_blank" href="{link('source', ['message-id' => $messageId])}">Source</a>
<a href="{link('delete-one', ['message-id' => $messageId])}">Delete</a>
</div>
<div class="nextras-mail-panel-subject" title="Sent at {$message->getHeader('Date')}">{$message->subject}</div>
<div class="nextras-mail-panel-subject" title="Sent at {$message->getHeader('Date')}">{$message->getSubject()}</div>
</th>
</tr>

Expand Down

0 comments on commit 8aa23f2

Please sign in to comment.