Function deltachat::chat::shall_attach_selfavatar

source ยท
pub(crate) async fn shall_attach_selfavatar(
    context: &Context,
    chat_id: ChatId,
) -> Result<bool>
Expand description

Returns true if an avatar should be attached in the given chat.

This function does not check if the avatar is set. If avatar is not set and this function returns true, a Chat-User-Avatar: 0 header should be sent to reset the avatar.