mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Only apply ephemeral timers to non-special chats
This commit is contained in:
@@ -854,11 +854,12 @@ async fn add_parts(
|
|||||||
|
|
||||||
// Apply ephemeral timer changes to the chat.
|
// Apply ephemeral timer changes to the chat.
|
||||||
//
|
//
|
||||||
// Only non-hidden timers are applied. Timers from hidden
|
// Only apply the timer when there are visible parts (e.g., the message does not consist only
|
||||||
// messages such as read receipts can be useful to detect
|
// of `location.kml` attachment). Timer changes without visible received messages may be
|
||||||
// ephemeral timer support, but timer changes without visible
|
// confusing to the user.
|
||||||
// received messages may be confusing to the user.
|
if !chat_id.is_special()
|
||||||
if !location_kml_is && !is_mdn && chat_id.get_ephemeral_timer(context).await? != ephemeral_timer
|
&& !mime_parser.parts.is_empty()
|
||||||
|
&& chat_id.get_ephemeral_timer(context).await? != ephemeral_timer
|
||||||
{
|
{
|
||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user