Skip to content

Commit

Permalink
Update history_widget.cpp
Browse files Browse the repository at this point in the history
combine with storage
  • Loading branch information
deevroman committed Nov 7, 2024
1 parent 2f386a4 commit c4121f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/history/history_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ extern "C" {
#include <cstring>
#include <QString>
#include <iomanip>
#include "data/encrypt/data_encrypt_settings.h"
#include "data/data_peer.h"

namespace {

Expand Down Expand Up @@ -6740,6 +6742,8 @@ void HistoryWidget::startItemRevealAnimations() {
}
if (view->textItem()->originalText().text.startsWith(QString::fromStdString( message_prefix))) {
std::string text = view->textItem()->originalText().text.mid(message_prefix.size()).toStdString();
auto keys = session().data().encryptSettings();
auto peer = view->history()->peer;
if (des_key1 != nullptr) {
view->textItem()->setText(TextWithEntities::Simple(QString("DEC: ") + QString::fromStdString( decryptText(text.c_str(), des_key1))));
} else if (des_key2 != nullptr) {
Expand Down

0 comments on commit c4121f4

Please sign in to comment.