Skip to content

Message is briefly in "unencrypted" state right after sending a message out #8090

@link2xt

Description

@link2xt

Here we remove GuarenteeE2ee when sending the message and save it to the database:

core/src/chat.rs

Lines 2608 to 2610 in d2097d3

msg.param.remove(Param::GuaranteeE2ee);
msg.param.remove(Param::ForcePlaintext);
msg.update_param(context).await?;

If UI sends the message and immediately reloads the state, the message will appear unencrypted (and have an "envelope" icon) even if it is sent out as encrypted later.

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions