direct chat creator can now create direct chats
This commit is contained in:
parent
5384ab377c
commit
838cf63578
3 changed files with 34 additions and 13 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ public:
|
|||
Q_INVOKABLE void openRoomSettings(QString room_id);
|
||||
Q_INVOKABLE void openInviteUsers(QString roomId);
|
||||
Q_INVOKABLE void openGlobalUserProfile(QString userId);
|
||||
Q_INVOKABLE UserProfile* getGlobalUserProfile(QString userId);
|
||||
|
||||
Q_INVOKABLE void focusMessageInput();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue