summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-07-21 20:38:18 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-07-21 20:38:18 -0400
commitbbecadf1a8c3d78609a6112a879288f841b592f4 (patch)
tree19c15636e52903332703b2ccc607c98321781d37 /src/timeline/TimelineViewManager.cpp
parentPad the loading spinner (diff)
downloadnheko-bbecadf1a8c3d78609a6112a879288f841b592f4.tar.xz
Add functionality for loading global user profile where needed
This is so viewing profiles from the invite dialog will work as expected.
Diffstat (limited to 'src/timeline/TimelineViewManager.cpp')
-rw-r--r--src/timeline/TimelineViewManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index b1643798..da3ba282 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -379,6 +379,12 @@ TimelineViewManager::openInviteUsers(QString roomId) emit openInviteUsersDialog(model); } +void TimelineViewManager::openGlobalUserProfile(QString userId) +{ + UserProfile *profile = new UserProfile{QString{}, userId, this}; + emit openProfile(profile); +} + void TimelineViewManager::setVideoCallItem() {