Commit graph

79 commits

Author SHA1 Message Date
Athozus
09a156cfe8
Add ability to create mail lists 2023-03-29 14:48:54 +02:00
Athozus
fd9b579c5f
Add deleting contact 2023-03-29 14:48:53 +02:00
Athozus
178a101618
Create mail lists formspec based on contacts 2023-03-29 14:48:53 +02:00
Athozus
addc9eb9bc
Use global contacts functions and reconfigure add/remove functions 2023-03-29 14:48:53 +02:00
Athozus
b5285fbff1
Show every message received/sent via specific functions 2023-03-29 14:48:52 +02:00
Athozus
3dd820a16b
Fix messages loading 2023-03-29 14:48:52 +02:00
Athozus
1441c28ccf
Mark read/unread/delete a message 2023-03-29 14:48:52 +02:00
Athozus
7ede5864be
Add automatic generation of status for a new message (unread) 2023-03-29 14:48:52 +02:00
Athozus
128b209067
Receive player messages from global storage 2023-03-29 14:48:51 +02:00
Athozus
0d69f0242b
Add insertion of messages into global storage mail.messages.json 2023-03-29 14:48:51 +02:00
Athozus
17b5f94fed
Show date time (#27)
* Show date in message reading

* Fix wrong registered dates

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* Rework header layout to add better space for date

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-03-29 14:48:38 +02:00
Athozus
e73d11b8bd
Resize messages table to be aligned with close button at the bottom 2023-03-29 14:47:04 +02:00
Athozus
dd145e621a
Remove index variable verification on mark read/unread buttons since they are necessarily clicked on inbox view 2023-03-29 14:46:59 +02:00
Athozus
61d70e427e
Add variable to keep the previous tab instead of going back to the first one 2023-03-29 14:46:26 +02:00
Athozus
92a7c71d7f
Remove comment on selected_idxs test (show_sent) 2023-03-29 14:40:21 +02:00
Athozus
f58af625c5
Add show_sent function and show sent messages 2023-03-29 14:40:05 +02:00
Athozus
2d10355a20
Add tabheader & sent formspec 2023-03-29 14:39:45 +02:00
BuckarooBanzay
140608f1ca add canonical_name to luacheck config 2023-02-23 23:32:57 +01:00
BuckarooBanzay
f53221e742 fix smoke test 2023-02-23 23:31:01 +01:00
flux
f7a7ef361a
use canonical_name if it is available; report error when trying to send mail to non-existent players 2023-02-23 13:41:41 -08:00
fluxionary
43bf5b9a6f
don't forget which message was selected (#25) 2022-11-21 18:30:52 +01:00
fluxionary
8062173a5a
fix unified inventory integration (#23) 2022-09-23 21:26:36 -04:00
BuckarooBanzay
d1254a7c5b check messages for missing time field 2022-08-06 20:23:35 +02:00
BuckarooBanzay
bbd6e9123f update ci status badges 2022-08-02 15:06:42 +02:00
BuckarooBanzay
abe3c29e6d strip down to bare mail mod 2022-08-02 15:03:31 +02:00
BuckarooBanzay
3327be9bf4 consistent function syntax 2022-08-02 14:58:42 +02:00
BuckarooBanzay
5642f139df use mtt for integration tests 2022-08-02 14:56:32 +02:00
BuckarooBanzay
4b496a1e61 order received mails by date descending
fixes #21
2022-08-02 14:49:22 +02:00
Dennis Jenkins
d9771ded2a Fixes https://github.com/EdenLostMinetest/edenlost/issues/8 2022-01-20 12:48:25 +01:00
BuckarooBanzay
390c431b96 readonly received msg view
fixes #15
2022-01-07 13:19:05 +01:00
BuckarooBanzay
461f57cde8 fix global var typo 2021-03-21 10:45:38 +01:00
SX
ef2a4d02e0 Optional QoS support 2021-03-19 20:35:33 +01:00
SX
0aaea28a2f Optional QoS support 2021-03-19 20:35:33 +01:00
SX
dd429cbed4 Optional QoS support 2021-03-19 20:35:33 +01:00
Buckaroo Banzai
416d616a3c
Merge pull request #11 from DiamondPlane/DiamondPlane-patch-1
Colorize on join message
2021-03-16 20:12:37 +01:00
Toby1710
47df85a16a
Update onjoin.lua 2021-03-16 18:13:43 +02:00
Buckaroo Banzai
0f1b3c6260
check field arg for nil 2020-10-30 15:04:18 +01:00
Buckaroo Banzai
6537d205d4
add some nil-checks to edit form callback
fixes #9
2020-10-23 12:54:29 +02:00
BuckarooBanzay
51e80c6d9d satisfy luacheck 2020-10-13 19:20:18 +02:00
BuckarooBanzay
63521f5e85 check fields of forwarded mail
fixes https://github.com/pandorabox-io/pandorabox.io/issues/556
2020-10-13 19:15:58 +02:00
BuckarooBanzay
18592b0a35 more sanity checks and default values 2020-09-20 20:18:34 +02:00
BuckarooBanzay
be51cff470 field fix 2020-09-20 13:11:38 +02:00
BuckarooBanzay
64262c95a6 map legacy "dst" field to "to"
fixes https://github.com/pandorabox-io/pandorabox.io/issues/542
2020-09-19 13:22:33 +02:00
Buckaroo Banzai
35d29789ca
Merge pull request #6 from PeterNerlich/contacts
Contacts
2020-08-17 09:07:15 +02:00
Peter Nerlich
f35b62649b recipient selection: indicate what is TO and what is CC 2020-08-15 14:53:59 +02:00
Peter Nerlich
0d937711aa fix mail.ensure_new_format() (had lead to wrong TO field when using Reply All), remove player from CC when using Reply All 2020-08-15 14:44:25 +02:00
Peter Nerlich
93d1af947c always sort contacts alphabetically
- introduce pairsByKeys() (from http://www.lua.org/pil/19.3.html but adding current index and total length as iterator return values)
- use pairsByKeys() everywhere, where contacts are iterated over (for now only when displaying in gui.lua) so the order stays the same although the structure is a hashmap
- correctly update selected position when adding/removing contacts to TO/CC/BCC fields
- remove print statements in storage.lua
2020-08-15 13:52:26 +02:00
Peter Nerlich
39f47437b6 migration fixes 2020-08-12 12:23:46 +02:00
Peter Nerlich
106e94eee7 Merge branch 'cc-bcc' into contacts 2020-08-12 12:23:12 +02:00
Peter Nerlich
8beec340d3 revert renaming "sender" to "from" to maintain backwards compatibility 2020-08-12 12:05:12 +02:00