Fix lambda capture and lint issues
This commit is contained in:
parent
756c7d1671
commit
71c1cbcfd1
@ -76,7 +76,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent)
|
||||
&FilteredTextEdit::uploadData);
|
||||
|
||||
connect(this, &FilteredTextEdit::resultsRetrieved, this, &FilteredTextEdit::showResults);
|
||||
connect(&replyPopup_, &ReplyPopup::userSelected, this, [this](const QString &text) {
|
||||
connect(&replyPopup_, &ReplyPopup::userSelected, this, [](const QString &text) {
|
||||
// TODO: Show user avatar window.
|
||||
nhlog::ui()->info("User selected: " + text.toStdString());
|
||||
});
|
||||
|
@ -690,7 +690,9 @@ TimelineView::updatePendingMessage(const std::string &txn_id, const QString &eve
|
||||
}
|
||||
|
||||
void
|
||||
TimelineView::addUserMessage(mtx::events::MessageType ty, const QString &body, const QString &related_event)
|
||||
TimelineView::addUserMessage(mtx::events::MessageType ty,
|
||||
const QString &body,
|
||||
const QString &related_event)
|
||||
{
|
||||
auto with_sender = (lastSender_ != local_user_) || isDateDifference(lastMsgTimestamp_);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user