summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-03-26 22:25:48 +0100
committerMalte E <malte.e@mailbox.org>2022-03-26 22:25:48 +0100
commit838cf63578d2145e9264bd37e68993f6e6e8d132 (patch)
tree897580b5679beec1af1de68298b356721bf94217 /src/timeline/TimelineViewManager.cpp
parentinitial direct chat creation dialog (diff)
downloadnheko-838cf63578d2145e9264bd37e68993f6e6e8d132.tar.xz
direct chat creator can now create direct chats
Diffstat (limited to 'src/timeline/TimelineViewManager.cpp')
-rw-r--r--src/timeline/TimelineViewManager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index a18f3ee2..72f89fd4 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -199,6 +199,14 @@ TimelineViewManager::openGlobalUserProfile(QString userId) emit openProfile(profile); } +UserProfile* +TimelineViewManager::getGlobalUserProfile(QString userId) +{ + UserProfile *profile = new UserProfile{QString{}, userId, this}; + QQmlEngine::setObjectOwnership(profile, QQmlEngine::JavaScriptOwnership); + return(profile); +} + void TimelineViewManager::setVideoCallItem() {