Cleanup chatkeyhelp and tests

This commit is contained in:
James Graham
2026-02-14 12:18:07 +00:00
parent c5457a893f
commit 0341da5868
9 changed files with 57 additions and 28 deletions

View File

@@ -58,6 +58,10 @@ bool ChatKeyHelper::up(Qt::KeyboardModifiers modifiers)
}
if (modifiers.testFlag(Qt::ControlModifier)) {
const auto room = textItem->room();
if (!room) {
return false;
}
room->replyLastMessage();
return true;
}