Show a placeholder for encrypted messages

Tells the user that the message could not be decrypted because the key
was not shared with the device. At the moment, this is technically not
completely correct, but it will be when libQuotient supports reading
encrypted messages
This commit is contained in:
Tobias Fella
2021-08-18 21:54:06 +02:00
parent 94c4bbc3db
commit d7ce0b7468
5 changed files with 40 additions and 0 deletions

View File

@@ -490,6 +490,9 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
if (evt.isStateEvent()) {
return "state";
}
if (is<const EncryptedEvent>(evt)) {
return "encrypted";
}
return "other";
}