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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user