aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-03 22:28:09 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:36 +0900
commitfb46c2d2a6e53557452837c2690f32a56387fcac (patch)
tree9e3a1c43597f1c2874a028a9a3a8cfa1ea1454e6 /lib/room.h
parent2a6cbbff8246dd2f682624d1551facb2813394ad (diff)
downloadlibquotient-fb46c2d2a6e53557452837c2690f32a56387fcac.tar.gz
libquotient-fb46c2d2a6e53557452837c2690f32a56387fcac.zip
Room: findPendingEvent; fixes for postFile()
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/room.h b/lib/room.h
index 2b6a2172..029f87b7 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -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