Fixes here and there...

This commit is contained in:
Sebastian J. Wolf 2020-09-30 21:41:49 +02:00
parent bfe3084d2e
commit 9eb396c9ca
6 changed files with 16 additions and 5 deletions

View file

@ -58,7 +58,7 @@ TRANSLATIONS += translations/harbour-fernschreiber-de.ts \
translations/harbour-fernschreiber-zh_CN.ts
# Use armv7hl for most devices and i486 for emulator and Jolla Tablet. Can most certainly be automated... ;)
TARGET_ARCHITECTURE = armv7hl
TARGET_ARCHITECTURE = i486
INCLUDEPATH += $$PWD/tdlib/include
DEPENDPATH += $$PWD/tdlib/include

View file

@ -109,7 +109,7 @@ CoverBackground {
Column {
anchors.fill: parent
anchors.margins: Theme.horizontalPageMargin
anchors.margins: Theme.paddingLarge
spacing: Theme.paddingMedium
visible: coverPage.authenticated
Row {

View file

@ -58,11 +58,12 @@ Page {
Timer {
id: chatListCreatedTimer
interval: 500
interval: 300
running: false
repeat: false
onTriggered: {
overviewPage.chatListCreated = true;
chatListModel.redrawModel();
}
}

View file

@ -15,3 +15,13 @@
* Sun Sep 20 2020 Sebastian J. Wolf <sebastian@ygriega.de> 0.1
- Initial release
* Wed Sep 30 2020 Sebastian J. Wolf <sebastian@ygriega.de> 0.2
- Support sending images, videos and documents
- Support receiving locations and venues - thanks to jgibbon
- Performance improvements for chat list, new sorting algorithm and much more - thanks to monich
- Performance improvements for chat, lazy loading for most UI elements
- Cover page improvements - thanks to jgibbon
- Fix handling of "<>" in messages
- Differentiate text between other people and current user ("You have..." vs. "Somebody has...")
- Support for the Jolla Tablet
- New translations (Chinese, Hungarian, Polish, Spanish) - thanks to dashinfantry, edp17, atlochowski, GNUuser

View file

@ -167,7 +167,7 @@ QVariantMap NotificationManager::sendNotification(const QString &chatId, const Q
QVariantMap chatInformation = this->chatMap.value(chatId).toMap();
QString chatType = chatInformation.value("type").toMap().value("@type").toString();
bool addAuthor = false;
if (chatType == "chatTypeBasicGroup" || ( chatType == "chatTypeSupergroup" && !chatInformation.value("@type").toMap().value("is_channel").toBool() )) {
if (chatType == "chatTypeBasicGroup" || ( chatType == "chatTypeSupergroup" && !chatInformation.value("type").toMap().value("is_channel").toBool() )) {
addAuthor = true;
}

View file

@ -110,7 +110,7 @@ void TDLibReceiver::receiverLoop()
const char *result = td_json_client_receive(this->tdLibClient, WAIT_TIMEOUT);
if (result) {
QJsonDocument receivedJsonDocument = QJsonDocument::fromJson(QByteArray(result));
qDebug().noquote() << "[TDLibReceiver] Raw result: " << receivedJsonDocument.toJson(QJsonDocument::Indented);
// Too much information qDebug().noquote() << "[TDLibReceiver] Raw result: " << receivedJsonDocument.toJson(QJsonDocument::Indented);
processReceivedDocument(receivedJsonDocument);
}
}