summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailviewwindow.cpp
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-08-27 23:17:45 +0000
committerFedja Beader <fedja@protonmail.ch>2024-08-27 23:17:45 +0000
commitdf7344aa9c44e8a2736df02b8569cf32b41cb03a (patch)
tree0bd8cbd6466ce957d103503a4a28a4efa22697ee /src/gui/windows/mailviewwindow.cpp
parentb2f7e73bc1b7abff4b5aee4f0f569a4a723dc6e9 (diff)
downloadmanaplus-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.gz
manaplus-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.bz2
manaplus-df7344aa9c44e8a2736df02b8569cf32b41cb03a.tar.xz
manaplus-df7344aa9c44e8a2736df02b8569cf32b41cb03a.zip
Show mail expiry time
Server does not communicate sent time.. or it did, until 2017 ?? See src/map/clif.c #if PACKETVER >= 20170419 The RODEX_EXPIRY constant seems not to be communicated either, preventing us from deducing send time from expiry time. **** mana/plus!90
Diffstat (limited to 'src/gui/windows/mailviewwindow.cpp')
-rw-r--r--src/gui/windows/mailviewwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp
index d0d42f168..df2fe1eec 100644
--- a/src/gui/windows/mailviewwindow.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -69,6 +69,9 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
// TRANSLATORS: mail view window label
mTimeLabel(new Label(this, strprintf("%s %s", _("Time:"),
message->strTime.c_str()))),
+ // TRANSLATORS: mail view window label - mail expiry time
+ mExpireTimeLabel(new Label(this, strprintf("%s %s", _("Expires at:"),
+ timeToStr(message->expireTime).c_str()))),
mMoneyLabel(nullptr),
// TRANSLATORS: mail view window label
mFromLabel(new Label(this, strprintf("%s %s", _("From:"),
@@ -107,6 +110,7 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
int n = 0;
placer(0, n++, mTimeLabel, 1, 1);
+ placer(0, n++, mExpireTimeLabel, 1, 1);
placer(0, n++, mFromLabel, 1, 1);
placer(0, n++, mSubjectLabel, 1, 1);
if (message->money != 0)