Skip to content

Commit 4f160a6

Browse files
authored
feat: get_showpadlock() returns true for device messages (#6931)
Follow-up to #6925, reasoning is in this comment: #6925 (comment)
1 parent 54ca1c5 commit 4f160a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/message.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ impl Message {
835835
/// Returns true if padlock indicating message encryption should be displayed in the UI.
836836
pub fn get_showpadlock(&self) -> bool {
837837
self.param.get_int(Param::GuaranteeE2ee).unwrap_or_default() != 0
838+
|| self.from_id == ContactId::DEVICE
838839
}
839840

840841
/// Returns true if message is auto-generated.

0 commit comments

Comments
 (0)