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
-5
@@ -1230,17 +1230,13 @@ ORDER BY c.origin>=? DESC, c.last_seen DESC, c.id DESC
|
||||
.await?;
|
||||
|
||||
if let Some(query) = query {
|
||||
let self_addr = context
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.await?
|
||||
.unwrap_or_default();
|
||||
let self_name = context
|
||||
.get_config(Config::Displayname)
|
||||
.await?
|
||||
.unwrap_or_default();
|
||||
let self_name2 = stock_str::self_msg(context);
|
||||
|
||||
if self_addr.contains(query)
|
||||
if self_addrs.iter().any(|a| a.contains(query))
|
||||
|| self_name.contains(query)
|
||||
|| self_name2.contains(query)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user