[TabRoom] Fix compile failure due to unused lambda capture (#7577)

This commit is contained in:
RickyRister 2026-10-18 02:10:26 -07:00 • committed by GitHub
parent 4c03e0062b
commit b849a57dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -365,7 +365,7 @@ void TabRoom::sendMessage()
return;
} else {
ChatView *targetView = channelViews.value(activeChannelId, chatView);
auto onFinished = [this, targetView](const Response &response) {
auto onFinished = [targetView](const Response &response) {
if (response.response_code() == Response::RespChatFlood) {
targetView->appendMessage(tr("You are flooding the chat. Please wait a couple of seconds."));
} else if (response.response_code() == Response::RespFunctionNotAllowed ||