mirror of
https://github.com/chatmail/core.git
synced 2026-10-02 11:10:25 +03:00
fix: recognize self addresses in various places (instead of just the "primary")
This commit is contained in:
+1
-6
@@ -1421,12 +1421,7 @@ impl MimeFactory {
|
||||
let email_to_remove = msg.param.get(Param::Arg).unwrap_or_default();
|
||||
let fingerprint_to_remove = msg.param.get(Param::Arg4).unwrap_or_default();
|
||||
|
||||
if email_to_remove
|
||||
== context
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.await?
|
||||
.unwrap_or_default()
|
||||
{
|
||||
if context.is_self_addr(email_to_remove).await? {
|
||||
placeholdertext = Some(format!("{email_to_remove} left the group."));
|
||||
} else {
|
||||
placeholdertext = Some(format!("Member {email_to_remove} was removed."));
|
||||
|
||||
Reference in New Issue
Block a user