mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Add functionality for loading global user profile where needed
This is so viewing profiles from the invite dialog will work as expected.
This commit is contained in:
parent
0971fd0fcc
commit
bbecadf1a8
3 changed files with 8 additions and 1 deletions
|
@ -107,7 +107,7 @@ ApplicationWindow {
|
|||
userid: model.mxid
|
||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||
displayName: model.displayName
|
||||
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
||||
onClicked: TimelineManager.openGlobalUserProfile(model.mxid)
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -67,6 +67,7 @@ public:
|
|||
Q_INVOKABLE void openRoomMembers(QString room_id);
|
||||
Q_INVOKABLE void openRoomSettings(QString room_id);
|
||||
Q_INVOKABLE void openInviteUsers(QString roomId);
|
||||
Q_INVOKABLE void openGlobalUserProfile(QString userId);
|
||||
|
||||
Q_INVOKABLE void focusMessageInput();
|
||||
Q_INVOKABLE void openLeaveRoomDialog(QString roomid) const;
|
||||
|
|
Loading…
Reference in a new issue