mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
Ignore ephemeral timer changes if replying to old message
This should prevent timer changes back when someone is replying before receiving timer change.
This commit is contained in:
committed by
link2xt
parent
dea9630380
commit
93e038e056
@@ -684,6 +684,9 @@ async fn add_parts(
|
|||||||
if !*hidden
|
if !*hidden
|
||||||
&& !location_kml_is
|
&& !location_kml_is
|
||||||
&& !is_mdn
|
&& !is_mdn
|
||||||
|
&& (is_dc_message != MessengerMessage::Yes
|
||||||
|
|| parent.is_none()
|
||||||
|
|| parent.unwrap().ephemeral_timer != ephemeral_timer)
|
||||||
&& (*chat_id).get_ephemeral_timer(context).await? != ephemeral_timer
|
&& (*chat_id).get_ephemeral_timer(context).await? != ephemeral_timer
|
||||||
{
|
{
|
||||||
if let Err(err) = (*chat_id)
|
if let Err(err) = (*chat_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user