2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 08:35:21 +00:00

Mention user from context menu

This commit is contained in:
RadRussianRus
2020-07-30 16:36:07 +03:00
parent 22bce76f1d
commit d6face04c9
13 changed files with 52 additions and 0 deletions

View File

@@ -2578,6 +2578,14 @@ void MainWidget::searchInChat(Dialogs::Key chat) {
}
}
void MainWidget::mentionUser(PeerData *peer) {
if (!_history->peer() || !_history->peer()->canWrite()) {
return;
}
_history->mentionUser(peer);
}
void MainWidget::openPeerByName(
const QString &username,
MsgId msgId,