Implement quick edit

This commit is contained in:
Carl Schwan
2021-05-06 16:14:38 +00:00
parent 7b1c5f5aab
commit 0a51c845e6
5 changed files with 62 additions and 3 deletions

View File

@@ -58,6 +58,12 @@ public Q_SLOTS:
void
postMessage(const QString &text, const QString &attachementPath, const QString &replyEventId, const QString &editEventId, const QVariantMap &usernames);
/// \brief Send edit instructions (.e.g s/hallo/hello/)
///
/// This will automatically edit the last message posted and send the sed
/// instruction to IRC.
void postEdit(const QString &text);
private:
Connection *m_connection = nullptr;
NeoChatRoom *m_room = nullptr;