Skip to content
Snippets Groups Projects
Commit 7203eb80 authored by echicken's avatar echicken :chicken:
Browse files

For local mail, to/from_net_type may be 0 or undefined as per

Synchronet's whims. Check for falsiness instead of NET_NONE.

Just display to/from_net_addr without prefixing with to + @. Not
sure why I was doing this, but if there was a reason, I'll need
to make an per-net-type address formatting thing.
parent 3fed3417
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -25,8 +25,8 @@
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<? write(header.number); ?>)">
<? write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><? write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<? if (header.from_net_type != NET_NONE) { ?>
&lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<? if (_mail_tab == 'sent' ? header.to_net_type : header.from_net_type) { ?>
&lt;<? write(_mail_tab == 'sent' ? header.to_net_addr : header.from_net_addr); ?>&gt;
<? } ?>
<? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment