Actually populate messages... oops
This commit is contained in:
parent
ca31d01fbf
commit
6df6ea1523
1 changed files with 3 additions and 2 deletions
|
@ -872,6 +872,8 @@ void MatrixCore::readMessageHistory(Room* room) {
|
|||
if(!room || room->prevBatch.isEmpty())
|
||||
return;
|
||||
|
||||
qDebug() << "Reading message history...";
|
||||
|
||||
network->get("/_matrix/client/r0/rooms/" + room->getId() + "/messages?from=" + room->prevBatch + "&dir=b", [this, room](QNetworkReply* reply) {
|
||||
const QJsonDocument document = QJsonDocument::fromJson(reply->readAll());
|
||||
|
||||
|
@ -1195,8 +1197,7 @@ void MatrixCore::consumeEvent(const QJsonObject& event, Room& room, const bool i
|
|||
|
||||
if(!firstSync && !traversingHistory)
|
||||
emit message(&room, e->getSender(), e->getMsg());
|
||||
} else
|
||||
return;
|
||||
}
|
||||
|
||||
// don't show redacted messages
|
||||
if(event["unsigned"].toObject().keys().contains("redacted_because"))
|
||||
|
|
Reference in a new issue