From 8e46661d787883826c78555d7ee8b7c12ae507a3 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Tue, 3 Nov 2020 22:32:36 +0100 Subject: [PATCH] Start chat from avatar or user name --- qml/pages/ChatPage.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index 9816778..ce3a913 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -686,6 +686,12 @@ Page { width: visible ? Theme.itemSizeSmall : 0 height: visible ? Theme.itemSizeSmall : 0 visible: ( chatPage.isBasicGroup || chatPage.isSuperGroup ) && !chatPage.isChannel + MouseArea { + anchors.fill: parent + onClicked: { + tdLibWrapper.createPrivateChat(messageListItem.userInformation.id); + } + } } } } @@ -741,6 +747,12 @@ Page { textFormat: Text.StyledText horizontalAlignment: messageListItem.isOwnMessage ? Text.AlignRight : Text.AlignLeft visible: ( chatPage.isBasicGroup || chatPage.isSuperGroup ) && !chatPage.isChannel + MouseArea { + anchors.fill: parent + onClicked: { + tdLibWrapper.createPrivateChat(messageListItem.userInformation.id); + } + } } InReplyToRow {