parent
5b09c8e652
commit
daabb40bed
@ -88,8 +88,8 @@ public:
|
||||
|
||||
template<class Widget, mtx::events::MessageType MsgType>
|
||||
void addUserMessage(const QString &url,
|
||||
const QSharedPointer<QIODevice> data,
|
||||
const QString &filename);
|
||||
const QString &filename,
|
||||
const QSharedPointer<QIODevice> data = Q_NULLPTR);
|
||||
void updatePendingMessage(int txn_id, QString event_id);
|
||||
void scrollDown();
|
||||
void addDateSeparator(QDateTime datetime, int position);
|
||||
@ -219,8 +219,8 @@ private:
|
||||
template<class Widget, mtx::events::MessageType MsgType>
|
||||
void
|
||||
TimelineView::addUserMessage(const QString &url,
|
||||
const QSharedPointer<QIODevice> data,
|
||||
const QString &filename)
|
||||
const QString &filename,
|
||||
const QSharedPointer<QIODevice> data)
|
||||
{
|
||||
auto with_sender = lastSender_ != local_user_;
|
||||
|
||||
|
@ -96,7 +96,7 @@ TimelineViewManager::queueImageMessage(const QString &roomid,
|
||||
|
||||
auto view = views_[roomid];
|
||||
|
||||
view->addUserMessage<ImageItem, mtx::events::MessageType::Image>(url, data, filename);
|
||||
view->addUserMessage<ImageItem, mtx::events::MessageType::Image>(url, filename, data);
|
||||
}
|
||||
|
||||
void
|
||||
@ -111,7 +111,7 @@ TimelineViewManager::queueFileMessage(const QString &roomid,
|
||||
|
||||
auto view = views_[roomid];
|
||||
|
||||
view->addUserMessage<FileItem, mtx::events::MessageType::File>(url, nullptr, filename);
|
||||
view->addUserMessage<FileItem, mtx::events::MessageType::File>(url, filename);
|
||||
}
|
||||
|
||||
void
|
||||
@ -126,7 +126,7 @@ TimelineViewManager::queueAudioMessage(const QString &roomid,
|
||||
|
||||
auto view = views_[roomid];
|
||||
|
||||
view->addUserMessage<AudioItem, mtx::events::MessageType::Audio>(url, nullptr, filename);
|
||||
view->addUserMessage<AudioItem, mtx::events::MessageType::Audio>(url, filename);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user