diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-01-03 22:28:09 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-01-05 21:01:36 +0900 |
commit | fb46c2d2a6e53557452837c2690f32a56387fcac (patch) | |
tree | 9e3a1c43597f1c2874a028a9a3a8cfa1ea1454e6 /lib/room.h | |
parent | 2a6cbbff8246dd2f682624d1551facb2813394ad (diff) | |
download | libquotient-fb46c2d2a6e53557452837c2690f32a56387fcac.tar.gz libquotient-fb46c2d2a6e53557452837c2690f32a56387fcac.zip |
Room: findPendingEvent; fixes for postFile()
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -234,6 +234,8 @@ namespace QMatrixClient rev_iter_t findInTimeline(TimelineItem::index_t index) const; rev_iter_t findInTimeline(const QString& evtId) const; + PendingEvents::iterator findPendingEvent(const QString & txnId); + PendingEvents::const_iterator findPendingEvent(const QString & txnId) const; bool displayed() const; /// Mark the room as currently displayed to the user @@ -374,7 +376,8 @@ namespace QMatrixClient QString postHtmlMessage(const QString& plainText, const QString& html, MessageEventType type); QString postHtmlText(const QString& plainText, const QString& html); - QString postFile(const QString& plainText, const QUrl& localPath); + QString postFile(const QString& plainText, const QUrl& localPath, + bool asGenericFile = false); /** Post a pre-created room message event * * Takes ownership of the event, deleting it once the matching one |