mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
Make ephemeral timer changes not ephemeral
This commit is contained in:
committed by
link2xt
parent
43c4816739
commit
7f8f871813
@@ -959,7 +959,11 @@ impl Chat {
|
||||
.await?;
|
||||
}
|
||||
|
||||
let ephemeral_timer = self.id.get_ephemeral_timer(context).await?;
|
||||
let ephemeral_timer = if msg.param.get_cmd() == SystemMessage::EphemeralTimerChanged {
|
||||
EphemeralTimer::Disabled
|
||||
} else {
|
||||
self.id.get_ephemeral_timer(context).await?
|
||||
};
|
||||
let ephemeral_timestamp = match ephemeral_timer {
|
||||
EphemeralTimer::Disabled => 0,
|
||||
EphemeralTimer::Enabled { duration } => timestamp + i64::from(duration),
|
||||
|
||||
Reference in New Issue
Block a user