Display peer IDs with delimeters.

This commit is contained in:
John Preston 2024-06-01 21:53:41 +04:00
parent b7f165a259
commit f4abe37dff
1 changed files with 3 additions and 2 deletions

View File

@ -172,8 +172,9 @@ base::options::toggle ShowPeerIdBelowAbout({
}
value.append(Italic(u"id: "_q));
const auto raw = peer->id.value & PeerId::kChatTypeMask;
const auto id = QString::number(raw);
value.append(Link(Italic(id), "internal:copy:" + id));
value.append(Link(
Italic(Lang::FormatCountDecimal(raw)),
"internal:copy:" + QString::number(raw)));
return std::move(value);
});
}