Change decrypt setting again

This commit is contained in:
Joseph Donofry 2020-04-23 19:21:20 -04:00
parent 18557023d9
commit 5893365439
3 changed files with 8 additions and 12 deletions

View file

@ -25,7 +25,8 @@ TimelineViewManager::updateEncryptedDescriptions()
auto ptr = i.value();
if (!ptr.isNull()) {
ptr->updateLastMessage(decrypt);
ptr->setDecryptDescription(decrypt);
ptr->updateLastMessage();
}
}
}
@ -132,6 +133,8 @@ TimelineViewManager::addRoom(const QString &room_id)
{
if (!models.contains(room_id)) {
QSharedPointer<TimelineModel> newRoom(new TimelineModel(this, room_id));
newRoom->setDecryptDescription(settings->isDecryptSidebarEnabled());
connect(newRoom.data(),
&TimelineModel::newEncryptedImage,
imgProvider,