mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Use URL instead of string for QR login.
This commit is contained in:
@@ -329,7 +329,7 @@ void QrWidget::showTokenError(const RPCError &error) {
|
||||
|
||||
void QrWidget::showToken(const QByteArray &token) {
|
||||
const auto encoded = token.toBase64(QByteArray::Base64UrlEncoding);
|
||||
_qrCodes.fire_copy("tg_login/" + encoded);
|
||||
_qrCodes.fire_copy("tg://login?token=" + encoded);
|
||||
}
|
||||
|
||||
void QrWidget::importTo(MTP::DcId dcId, const QByteArray &token) {
|
||||
|
||||
Reference in New Issue
Block a user