mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Fix lambda capture and lint issues
This commit is contained in:
parent
756c7d1671
commit
71c1cbcfd1
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue