2020-08-10 15:17:29 +03:00
|
|
|
/*
|
|
|
|
Copyright (C) 2020 Sebastian J. Wolf
|
|
|
|
|
|
|
|
This file is part of Fernschreiber.
|
|
|
|
|
2020-08-13 18:08:14 +03:00
|
|
|
Fernschreiber is free software: you can redistribute it and/or modify
|
2020-08-10 15:17:29 +03:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
2020-08-13 18:08:14 +03:00
|
|
|
Fernschreiber is distributed in the hope that it will be useful,
|
2020-08-10 15:17:29 +03:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
import QtQuick 2.5
|
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
import QtMultimedia 5.0
|
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
import Nemo.Notifications 1.0
|
2020-08-13 11:15:26 +03:00
|
|
|
import WerkWolf.Fernschreiber 1.0
|
2020-08-19 10:55:13 +03:00
|
|
|
import "../components"
|
|
|
|
import "../js/twemoji.js" as Emoji
|
2020-08-19 17:47:59 +03:00
|
|
|
import "../js/functions.js" as Functions
|
2020-08-10 15:17:29 +03:00
|
|
|
|
|
|
|
Page {
|
|
|
|
id: overviewPage
|
|
|
|
allowedOrientations: Orientation.All
|
|
|
|
|
2020-08-18 12:11:03 +03:00
|
|
|
property bool initializationCompleted: false;
|
2020-08-13 11:15:26 +03:00
|
|
|
property bool loading: true;
|
2020-08-13 16:35:43 +03:00
|
|
|
property int authorizationState: TelegramAPI.Closed
|
|
|
|
property int connectionState: TelegramAPI.WaitingForNetwork
|
2020-08-20 01:24:24 +03:00
|
|
|
property int ownUserId;
|
2020-08-20 19:45:56 +03:00
|
|
|
property bool chatListCreated: false;
|
2020-08-13 11:15:26 +03:00
|
|
|
|
2020-08-18 12:11:03 +03:00
|
|
|
onStatusChanged: {
|
2020-08-21 19:03:51 +03:00
|
|
|
if (status === PageStatus.Active && initializationCompleted && !chatListCreated) {
|
2020-08-18 12:11:03 +03:00
|
|
|
updateContent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-15 22:17:44 +03:00
|
|
|
Connections {
|
|
|
|
target: dBusAdaptor
|
|
|
|
onPleaseOpenMessage: {
|
|
|
|
console.log("[OverviewPage] Opening chat from external call...")
|
|
|
|
if (chatListCreated) {
|
|
|
|
if (status !== PageStatus.Active) {
|
|
|
|
pageStack.pop(pageStack.find( function(page){ return(page._depth === 0)} ), PageStackAction.Immediate);
|
|
|
|
}
|
|
|
|
pageStack.push(Qt.resolvedUrl("../pages/ChatPage.qml"), { "chatInformation" : tdLibWrapper.getChat(chatId) });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-20 19:45:56 +03:00
|
|
|
Timer {
|
|
|
|
id: chatListCreatedTimer
|
|
|
|
interval: 500
|
|
|
|
running: false
|
|
|
|
repeat: false
|
|
|
|
onTriggered: {
|
|
|
|
overviewPage.chatListCreated = true;
|
2020-08-20 21:06:59 +03:00
|
|
|
chatListModel.enableDeltaUpdates();
|
2020-08-20 19:45:56 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-13 18:08:14 +03:00
|
|
|
function setPageStatus() {
|
|
|
|
switch (overviewPage.connectionState) {
|
|
|
|
case TelegramAPI.WaitingForNetwork:
|
|
|
|
pageStatus.color = "red";
|
2020-08-13 23:32:35 +03:00
|
|
|
pageHeader.title = qsTr("Waiting for network...");
|
2020-08-13 18:08:14 +03:00
|
|
|
break;
|
|
|
|
case TelegramAPI.Connecting:
|
|
|
|
pageStatus.color = "gold";
|
2020-08-13 23:32:35 +03:00
|
|
|
pageHeader.title = qsTr("Connecting to network...");
|
2020-08-13 18:08:14 +03:00
|
|
|
break;
|
|
|
|
case TelegramAPI.ConnectingToProxy:
|
|
|
|
pageStatus.color = "gold";
|
2020-08-13 23:32:35 +03:00
|
|
|
pageHeader.title = qsTr("Connecting to proxy...");
|
2020-08-13 18:08:14 +03:00
|
|
|
break;
|
|
|
|
case TelegramAPI.ConnectionReady:
|
|
|
|
pageStatus.color = "green";
|
|
|
|
pageHeader.title = qsTr("Fernschreiber");
|
|
|
|
break;
|
|
|
|
case TelegramAPI.Updating:
|
|
|
|
pageStatus.color = "lightblue";
|
2020-08-13 23:32:35 +03:00
|
|
|
pageHeader.title = qsTr("Updating content...");
|
2020-08-13 18:08:14 +03:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-13 23:32:35 +03:00
|
|
|
function updateContent() {
|
2020-08-16 18:38:51 +03:00
|
|
|
tdLibWrapper.getChats();
|
2020-08-18 00:44:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function initializePage() {
|
|
|
|
overviewPage.authorizationState = tdLibWrapper.getAuthorizationState();
|
2020-08-18 12:11:03 +03:00
|
|
|
overviewPage.handleAuthorizationState();
|
|
|
|
overviewPage.connectionState = tdLibWrapper.getConnectionState();
|
|
|
|
overviewPage.setPageStatus();
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleAuthorizationState() {
|
|
|
|
switch (overviewPage.authorizationState) {
|
|
|
|
case TelegramAPI.WaitPhoneNumber:
|
2020-08-18 00:44:37 +03:00
|
|
|
overviewPage.loading = false;
|
2020-08-18 12:11:03 +03:00
|
|
|
pageStack.push(Qt.resolvedUrl("../pages/InitializationPage.qml"));
|
|
|
|
break;
|
|
|
|
case TelegramAPI.WaitCode:
|
|
|
|
overviewPage.loading = false;
|
|
|
|
pageStack.push(Qt.resolvedUrl("../pages/InitializationPage.qml"));
|
|
|
|
break;
|
|
|
|
case TelegramAPI.AuthorizationReady:
|
|
|
|
overviewPage.loading = false;
|
|
|
|
overviewPage.initializationCompleted = true;
|
2020-08-18 00:44:37 +03:00
|
|
|
overviewPage.updateContent();
|
2020-08-18 12:11:03 +03:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
// Nothing ;)
|
2020-08-18 00:44:37 +03:00
|
|
|
}
|
2020-08-13 23:32:35 +03:00
|
|
|
}
|
|
|
|
|
2020-08-13 11:15:26 +03:00
|
|
|
Connections {
|
|
|
|
target: tdLibWrapper
|
|
|
|
onAuthorizationStateChanged: {
|
2020-08-13 16:35:43 +03:00
|
|
|
overviewPage.authorizationState = authorizationState;
|
2020-08-18 12:11:03 +03:00
|
|
|
handleAuthorizationState();
|
2020-08-13 11:15:26 +03:00
|
|
|
}
|
2020-08-13 16:35:43 +03:00
|
|
|
onConnectionStateChanged: {
|
|
|
|
overviewPage.connectionState = connectionState;
|
2020-08-13 18:08:14 +03:00
|
|
|
setPageStatus();
|
2020-08-13 16:35:43 +03:00
|
|
|
}
|
2020-08-20 01:24:24 +03:00
|
|
|
onOwnUserIdFound: {
|
|
|
|
overviewPage.ownUserId = ownUserId;
|
|
|
|
}
|
2020-08-20 19:45:56 +03:00
|
|
|
onChatLastMessageUpdated: {
|
|
|
|
if (!overviewPage.chatListCreated) {
|
|
|
|
chatListCreatedTimer.stop();
|
|
|
|
chatListCreatedTimer.start();
|
|
|
|
}
|
|
|
|
}
|
2020-08-20 11:50:47 +03:00
|
|
|
onChatOrderUpdated: {
|
2020-08-20 19:45:56 +03:00
|
|
|
if (!overviewPage.chatListCreated) {
|
|
|
|
chatListCreatedTimer.stop();
|
|
|
|
chatListCreatedTimer.start();
|
|
|
|
}
|
2020-08-20 11:50:47 +03:00
|
|
|
}
|
2020-08-13 16:35:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
2020-08-18 00:44:37 +03:00
|
|
|
initializePage();
|
2020-08-13 11:15:26 +03:00
|
|
|
}
|
|
|
|
|
2020-08-10 15:17:29 +03:00
|
|
|
SilicaFlickable {
|
2020-08-21 15:26:56 +03:00
|
|
|
id: overviewContainer
|
2020-08-19 10:55:13 +03:00
|
|
|
contentHeight: parent.height
|
|
|
|
contentWidth: parent.width
|
2020-08-10 15:17:29 +03:00
|
|
|
anchors.fill: parent
|
2020-08-13 11:15:26 +03:00
|
|
|
visible: !overviewPage.loading
|
2020-08-10 15:17:29 +03:00
|
|
|
|
|
|
|
PullDownMenu {
|
|
|
|
MenuItem {
|
|
|
|
text: qsTr("About Fernschreiber")
|
|
|
|
onClicked: pageStack.push(Qt.resolvedUrl("../pages/AboutPage.qml"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: column
|
|
|
|
width: parent.width
|
2020-08-19 10:55:13 +03:00
|
|
|
height: parent.height
|
|
|
|
spacing: Theme.paddingMedium
|
2020-08-10 15:17:29 +03:00
|
|
|
|
2020-08-13 18:08:14 +03:00
|
|
|
Row {
|
2020-08-19 10:55:13 +03:00
|
|
|
id: headerRow
|
2020-08-13 18:08:14 +03:00
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
GlassItem {
|
|
|
|
id: pageStatus
|
|
|
|
width: Theme.itemSizeMedium
|
|
|
|
height: Theme.itemSizeMedium
|
|
|
|
color: "red"
|
|
|
|
falloffRadius: 0.1
|
|
|
|
radius: 0.2
|
|
|
|
cache: false
|
|
|
|
}
|
|
|
|
|
|
|
|
PageHeader {
|
|
|
|
id: pageHeader
|
|
|
|
title: qsTr("Fernschreiber")
|
|
|
|
width: parent.width - pageStatus.width
|
|
|
|
}
|
2020-08-10 15:17:29 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Item {
|
|
|
|
id: chatListItem
|
2020-08-19 10:55:13 +03:00
|
|
|
width: parent.width
|
|
|
|
height: parent.height - Theme.paddingMedium - headerRow.height
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
SilicaListView {
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
id: chatListView
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
anchors.fill: parent
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
clip: true
|
|
|
|
visible: count > 0
|
|
|
|
opacity: overviewPage.chatListCreated ? 1 : 0
|
|
|
|
Behavior on opacity { NumberAnimation {} }
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
model: chatListModel
|
|
|
|
delegate: ListItem {
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-09-15 22:17:44 +03:00
|
|
|
id: chatListViewItem
|
2020-08-30 14:42:22 +03:00
|
|
|
|
|
|
|
contentHeight: chatListRow.height + chatListSeparator.height + 2 * Theme.paddingMedium
|
|
|
|
contentWidth: parent.width
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
pageStack.push(Qt.resolvedUrl("../pages/ChatPage.qml"), { "chatInformation" : display });
|
2020-08-21 10:29:19 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Connections {
|
|
|
|
target: chatListModel
|
|
|
|
onChatChanged: {
|
|
|
|
if (overviewPage.chatListCreated) {
|
|
|
|
// Force update of all list item elements. dataChanged() doesn't seem to trigger them all :(
|
|
|
|
chatListPictureThumbnail.photoData = (typeof display.photo !== "undefined") ? display.photo.small : "";
|
|
|
|
chatUnreadMessagesCountBackground.visible = display.unread_count > 0;
|
|
|
|
chatUnreadMessagesCount.text = display.unread_count > 99 ? "99+" : display.unread_count;
|
|
|
|
chatListNameText.text = display.title !== "" ? Emoji.emojify(display.title, Theme.fontSizeMedium) : qsTr("Unknown");
|
|
|
|
chatListLastMessageText.text = (typeof display.last_message !== "undefined") ? Emoji.emojify(Functions.getMessageText(display.last_message, true), Theme.fontSizeExtraSmall) : qsTr("Unknown");
|
|
|
|
messageContactTimeElapsedText.text = (typeof display.last_message !== "undefined") ? Functions.getDateTimeElapsed(display.last_message.date) : qsTr("Unknown");
|
|
|
|
}
|
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Column {
|
|
|
|
id: chatListColumn
|
|
|
|
width: parent.width - ( 2 * Theme.horizontalPageMargin )
|
|
|
|
spacing: Theme.paddingSmall
|
|
|
|
anchors {
|
|
|
|
horizontalCenter: parent.horizontalCenter
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
Row {
|
|
|
|
id: chatListRow
|
|
|
|
width: parent.width
|
|
|
|
height: chatListContentColumn.height
|
|
|
|
spacing: Theme.paddingMedium
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: chatListPictureColumn
|
|
|
|
width: chatListContentColumn.height - Theme.paddingSmall
|
|
|
|
height: chatListContentColumn.height - Theme.paddingSmall
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: chatListPictureItem
|
2020-08-20 21:06:59 +03:00
|
|
|
width: parent.width
|
|
|
|
height: parent.width
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
ProfileThumbnail {
|
|
|
|
id: chatListPictureThumbnail
|
|
|
|
photoData: (typeof display.photo !== "undefined") ? display.photo.small : ""
|
|
|
|
replacementStringHint: chatListNameText.text
|
|
|
|
width: parent.width
|
|
|
|
height: parent.width
|
|
|
|
forceElementUpdate: overviewPage.chatListCreated
|
|
|
|
}
|
2020-08-20 21:06:59 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Rectangle {
|
|
|
|
id: chatUnreadMessagesCountBackground
|
|
|
|
color: Theme.highlightBackgroundColor
|
|
|
|
width: Theme.fontSizeLarge
|
|
|
|
height: Theme.fontSizeLarge
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
radius: parent.width / 2
|
|
|
|
visible: display.unread_count > 0
|
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Text {
|
|
|
|
id: chatUnreadMessagesCount
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
font.bold: true
|
|
|
|
color: Theme.primaryColor
|
|
|
|
anchors.centerIn: chatUnreadMessagesCountBackground
|
|
|
|
visible: chatUnreadMessagesCountBackground.visible
|
|
|
|
text: display.unread_count > 99 ? "99+" : display.unread_count
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Column {
|
|
|
|
id: chatListContentColumn
|
|
|
|
width: parent.width * 5 / 6 - Theme.horizontalPageMargin
|
2020-08-21 13:53:03 +03:00
|
|
|
spacing: Theme.paddingSmall
|
2020-08-30 14:42:22 +03:00
|
|
|
|
2020-08-19 10:55:13 +03:00
|
|
|
Text {
|
2020-08-30 14:42:22 +03:00
|
|
|
id: chatListNameText
|
2020-09-16 00:03:41 +03:00
|
|
|
text: display.title !== "" ? Emoji.emojify(display.title, font.pixelSize) + ( display.notification_settings.mute_for > 0 ? Emoji.emojify(" 🔇", font.pixelSize) : "" ) : qsTr("Unknown")
|
2020-08-19 10:55:13 +03:00
|
|
|
textFormat: Text.StyledText
|
2020-08-30 14:42:22 +03:00
|
|
|
font.pixelSize: Theme.fontSizeMedium
|
|
|
|
color: Theme.primaryColor
|
|
|
|
elide: Text.ElideRight
|
|
|
|
width: parent.width
|
2020-08-19 10:55:13 +03:00
|
|
|
onTruncatedChanged: {
|
|
|
|
// There is obviously a bug in QML in truncating text with images.
|
|
|
|
// We simply remove Emojis then...
|
|
|
|
if (truncated) {
|
|
|
|
text = text.replace(/\<img [^>]+\/\>/g, "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-30 14:42:22 +03:00
|
|
|
|
|
|
|
Row {
|
|
|
|
id: chatListLastMessageRow
|
|
|
|
width: parent.width
|
|
|
|
spacing: Theme.paddingSmall
|
|
|
|
Text {
|
|
|
|
id: chatListLastUserText
|
|
|
|
text: (typeof display.last_message !== "undefined") ? ( display.last_message.sender_user_id !== overviewPage.ownUserId ? Emoji.emojify(Functions.getUserName(tdLibWrapper.getUserInformation(display.last_message.sender_user_id)), font.pixelSize) : qsTr("You") ) : qsTr("Unknown")
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
color: Theme.highlightColor
|
|
|
|
textFormat: Text.StyledText
|
|
|
|
onTruncatedChanged: {
|
|
|
|
// There is obviously a bug in QML in truncating text with images.
|
|
|
|
// We simply remove Emojis then...
|
|
|
|
if (truncated) {
|
|
|
|
text = text.replace(/\<img [^>]+\/\>/g, "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Text {
|
|
|
|
id: chatListLastMessageText
|
|
|
|
text: (typeof display.last_message !== "undefined") ? Emoji.emojify(Functions.getMessageText(display.last_message, true), Theme.fontSizeExtraSmall) : qsTr("Unknown")
|
|
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
|
|
color: Theme.primaryColor
|
|
|
|
width: parent.width - Theme.paddingMedium - chatListLastUserText.width
|
|
|
|
elide: Text.ElideRight
|
|
|
|
textFormat: Text.StyledText
|
|
|
|
onTruncatedChanged: {
|
|
|
|
// There is obviously a bug in QML in truncating text with images.
|
|
|
|
// We simply remove Emojis then...
|
|
|
|
if (truncated) {
|
|
|
|
text = text.replace(/\<img [^>]+\/\>/g, "");
|
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Timer {
|
|
|
|
id: messageContactTimeUpdater
|
|
|
|
interval: 60000
|
|
|
|
running: true
|
|
|
|
repeat: true
|
|
|
|
onTriggered: {
|
|
|
|
if (typeof display.last_message !== "undefined") {
|
|
|
|
messageContactTimeElapsedText.text = Functions.getDateTimeElapsed(display.last_message.date);
|
|
|
|
}
|
2020-08-20 01:24:24 +03:00
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Text {
|
|
|
|
id: messageContactTimeElapsedText
|
|
|
|
text: (typeof display.last_message !== "undefined") ? Functions.getDateTimeElapsed(display.last_message.date) : qsTr("Unknown")
|
|
|
|
font.pixelSize: Theme.fontSizeTiny
|
|
|
|
color: Theme.secondaryColor
|
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
}
|
2020-08-30 14:42:22 +03:00
|
|
|
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Separator {
|
|
|
|
id: chatListSeparator
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
anchors {
|
|
|
|
top: chatListColumn.bottom
|
|
|
|
topMargin: Theme.paddingMedium
|
|
|
|
}
|
2020-08-19 10:55:13 +03:00
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
width: parent.width
|
|
|
|
color: Theme.primaryColor
|
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
VerticalScrollDecorator {}
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
Column {
|
|
|
|
width: parent.width
|
|
|
|
height: loadingLabel.height + loadingBusyIndicator.height + Theme.paddingMedium
|
|
|
|
spacing: Theme.paddingMedium
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
opacity: overviewPage.chatListCreated ? 0 : 1
|
|
|
|
Behavior on opacity { NumberAnimation {} }
|
|
|
|
visible: !overviewPage.chatListCreated
|
|
|
|
|
|
|
|
InfoLabel {
|
|
|
|
id: loadingLabel
|
|
|
|
text: qsTr("Loading chat list...")
|
|
|
|
}
|
|
|
|
|
|
|
|
BusyIndicator {
|
|
|
|
id: loadingBusyIndicator
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
running: !overviewPage.chatListCreated
|
|
|
|
size: BusyIndicatorSize.Large
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-19 10:55:13 +03:00
|
|
|
}
|
|
|
|
|
2020-08-30 14:42:22 +03:00
|
|
|
|
2020-08-10 15:17:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|