Fix creating broken direct chat for user with a direct chat already open
Just enter the existing room instead of trying to create a new one but broken. Fix !237
This commit is contained in:
@@ -21,6 +21,7 @@ class QNetworkConfigurationManager;
|
||||
#include "user.h"
|
||||
|
||||
class NeoChatRoom;
|
||||
class NeoChatUser;
|
||||
class QQuickWindow;
|
||||
|
||||
using namespace Quotient;
|
||||
@@ -86,6 +87,8 @@ public:
|
||||
|
||||
Q_INVOKABLE QString formatDuration(quint64 msecs, KFormat::DurationFormatOptions options = KFormat::DefaultDuration) const;
|
||||
Q_INVOKABLE QString formatByteSize(double size, int precision = 1) const;
|
||||
|
||||
Q_INVOKABLE void openOrCreateDirectChat(NeoChatUser *user);
|
||||
private:
|
||||
explicit Controller(QObject *parent = nullptr);
|
||||
~Controller() override;
|
||||
|
||||
Reference in New Issue
Block a user