2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix sponsored messages badge with BottomInfo.

This commit is contained in:
John Preston
2021-12-07 12:15:30 +04:00
parent b151d210bf
commit be74f8f2bc
9 changed files with 44 additions and 61 deletions

View File

@@ -84,17 +84,6 @@ void HistoryMessageVia::resize(int32 availw) const {
}
}
HistoryMessageSponsored::HistoryMessageSponsored() {
text.setText(
st::msgDateTextStyle,
tr::lng_sponsored(tr::now),
Ui::NameTextOptions());
}
int HistoryMessageSponsored::maxWidth() const {
return text.maxWidth();
}
HiddenSenderInfo::HiddenSenderInfo(const QString &name, bool external)
: name(name)
, colorPeerId(Data::FakePeerIdForJustName(name))