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:
Alexander Krotov
2020-12-05 07:13:24 +03:00
committed by link2xt
parent dea9630380
commit 93e038e056

View File

@@ -684,6 +684,9 @@ async fn add_parts(
if !*hidden
&& !location_kml_is
&& !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
{
if let Err(err) = (*chat_id)