2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

tilde fix in 100%, dialogs repaint fix, markdown (bold, italic, code, pre support) added

This commit is contained in:
John Preston
2015-10-23 18:06:56 +02:00
parent 2b36f4d23a
commit 3df66a7ed3
24 changed files with 1027 additions and 525 deletions

View File

@@ -165,12 +165,12 @@ ProfileInner::ProfileInner(ProfileWidget *profile, ScrollArea *scroll, const Pee
// about
if (_peerUser && _peerUser->botInfo) {
if (!_peerUser->botInfo->shareText.isEmpty()) {
_about.setText(st::linkFont, _peerUser->botInfo->shareText, _historyBotOptions);
_about.setText(st::linkFont, _peerUser->botInfo->shareText, _historyBotNoMonoOptions);
}
updateBotLinksVisibility();
} else {
if (_peerChannel && !_peerChannel->about.isEmpty()) {
_about.setText(st::linkFont, _peerChannel->about, _historyTextOptions);
_about.setText(st::linkFont, _peerChannel->about, _historyTextNoMonoOptions);
}
_botSettings.hide();
_botHelp.hide();
@@ -470,7 +470,7 @@ void ProfileInner::onFullPeerUpdated(PeerData *peer) {
if (_peerUser->botInfo->shareText.isEmpty()) {
_about = Text(st::wndMinWidth - st::profilePadding.left() - st::profilePadding.right());
} else {
_about.setText(st::linkFont, _peerUser->botInfo->shareText, _historyBotOptions);
_about.setText(st::linkFont, _peerUser->botInfo->shareText, _historyBotNoMonoOptions);
}
updateBotLinksVisibility();
resizeEvent(0);
@@ -487,7 +487,7 @@ void ProfileInner::onFullPeerUpdated(PeerData *peer) {
if (_peerChannel->about.isEmpty()) {
_about = Text(st::wndMinWidth - st::profilePadding.left() - st::profilePadding.right());
} else {
_about.setText(st::linkFont, _peerChannel->about, _historyTextOptions);
_about.setText(st::linkFont, _peerChannel->about, _historyTextNoMonoOptions);
}
showAll();
resizeEvent(0);