Fix separator.

This commit is contained in:
Black Hat
2018-10-20 15:25:17 +08:00
parent 2e4fed72fe
commit f53bdaae89
2 changed files with 6 additions and 5 deletions

View File

@@ -83,13 +83,11 @@ void RoomListModel::connectRoomSignals(SpectralRoom* room) {
User* sender = room->user(event->senderId());
if (sender == room->localUser()) return;
QUrl _url = room->avatarUrl();
qDebug() << QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png";
emit newMessage(
room->id(), event->id(), room->displayName(), sender->displayname(),
event->contentJson().value("body").toString(), room->avatar(128),
QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png");
QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png"));
});
}