Alexander Krotov
5e8e77dfb6
clippy: forbid wildcard_imports
2021-01-12 12:06:13 +03:00
Hocuri
78fd0c285b
Delete messages more thoroughly (and at all) ( #2114 )
...
- Make sure delete_expired_messages and housekeeping runs once a day
- delete more info about messages when putting them to trash (esp. also
delete txt_raw, from_id and to_id as we don't need those anymore, so
they are data that was unnecessarily kept)
fix #1926 , fix #2090
Also:
* Nicer test_utils: add send_text() and print_chat()
* Adapt ephemeral messages for testing (make them accurate to the second)
* Add test for ephemeral messages
* Make pop_sent_msg() really pop the last sent message
2020-12-26 18:29:43 +01:00
Hocuri
af8a6d7722
Create and use some test helper functions
2020-12-18 18:35:54 +01:00
Alexander Krotov
eb693a4a21
Add Rust test for ephemeral timer messaging
2020-12-06 21:09:13 +03:00
dignifiedquire
1ae49c1fca
unify events
2020-08-10 10:32:48 +02:00
Alexander Krotov
f28a0db7d0
Store typed timer in ChatEphemeralTimerModified event
2020-07-10 02:55:17 +03:00
Alexander Krotov
e5d5009d6a
Emit ChatEphemeralTimerModified when user changes the timer
2020-07-10 02:52:45 +03:00
Alexander Krotov
1b5d08e6ee
Start ephemeral timers during housekeeping
2020-07-08 01:16:01 +03:00
Alexander Krotov
6050f0e2a1
Always schedule next ephemeral task after message deletion
...
If no messages were deleted, it means the task was scheduled earlier
then needed and should be rescheduled.
2020-07-01 22:18:36 +03:00
Alexander Krotov
d4dea0d5c6
Schedule ephemeral task 1 second later
...
This accounts for 1-second rounding, otherwise the task is always too early.
2020-07-01 22:18:36 +03:00
Alexander Krotov
db6623d0cf
Add stock strings for ephemeral timer changes
2020-07-01 12:31:51 +03:00
Alexander Krotov
059caee527
Add "by me" to "Ephemeral message timer changed to"
...
Otherwise this message looks different on other devices of the sender.
2020-07-01 12:31:51 +03:00
Alexander Krotov
0c47489a3b
Use ephemeral::Timer in MsgId.ephemeral_timer() method
2020-06-29 23:04:34 +03:00
Alexander Krotov
7d048ac419
Add autodelete timers
2020-06-29 23:04:34 +03:00