mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
target comments from @flub and @dignifiedquire
This commit is contained in:
committed by
holger krekel
parent
3bb58be2b5
commit
f6861ca5f5
@@ -1608,8 +1608,7 @@ pub fn shall_attach_selfavatar(context: &Context, chat_id: u32) -> Result<bool,
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
let resend_every_days = 14;
|
||||
let timestamp_some_days_ago = time() - resend_every_days * 24 * 60 * 60;
|
||||
let timestamp_some_days_ago = time() - DC_RESEND_USER_AVATAR_DAYS * 24 * 60 * 60;
|
||||
let needs_attach = context.sql.query_map(
|
||||
"SELECT c.selfavatar_sent
|
||||
FROM chats_contacts cc
|
||||
|
||||
Reference in New Issue
Block a user