From c3e02240bff004cfbde8e747894489dc939b1ebe Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Mon, 1 Feb 2021 22:13:04 +0530 Subject: update room and global avatar through user profile --- resources/qml/UserProfile.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/qml') diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml index 26dfc48c..cff69a90 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml @@ -31,7 +31,7 @@ ApplicationWindow { displayName: profile.displayName userid: profile.userid Layout.alignment: Qt.AlignHCenter - onClicked: TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) + onClicked: profile.isSelf ? profile.changeAvatar() : TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) } TextInput { -- cgit 1.5.1