mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 04:41:51 +03:00
73bae8cd30
- Add struct TalkNotificationData to handle token and messageId. - Handle chat and call notifications with the new struct. - Add talk token and messageId to data roles in ActivityListModel. - Add Talk Reply component to the ActivityList. - User Loader to display the TalkReply component. - Move Talk Reply from ActivityItem to ActivityItemContent due to PR #4186. - Use TextField instead of Text. - Disable send reply button instead of changing border color when field is empty. Signed-off-by: Camila <hello@camila.codes>
24 lines
460 B
C++
24 lines
460 B
C++
#pragma once
|
|
|
|
#include <QtCore>
|
|
#include <QPointer>
|
|
|
|
namespace OCC {
|
|
class AccountState;
|
|
|
|
class TalkReply : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TalkReply(AccountState *accountState, QObject *parent = nullptr);
|
|
|
|
void sendReplyMessage(const QString &conversationToken, const QString &message, const QString &replyTo = {});
|
|
|
|
signals:
|
|
void replyMessageSent(const QString &message);
|
|
|
|
private:
|
|
AccountState *_accountState = nullptr;
|
|
};
|
|
}
|