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

Move message components to history_item_components.

Also fix channel signatures rendering.
This commit is contained in:
John Preston
2017-12-18 19:44:50 +04:00
parent 16ca2d39c5
commit 92333e982c
28 changed files with 1941 additions and 1638 deletions

View File

@@ -35,6 +35,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "media/player/media_player_instance.h"
#include "storage/localstorage.h"
#include "history/history_media_types.h"
#include "history/history_item_components.h"
#include "ui/effects/round_checkbox.h"
namespace Overview {
@@ -751,7 +752,7 @@ const style::RoundCheckbox &Voice::checkboxStyle() const {
void Voice::updateName() {
auto version = 0;
if (auto forwarded = parent()->Get<HistoryMessageForwarded>()) {
if (const auto forwarded = parent()->Get<HistoryMessageForwarded>()) {
if (parent()->fromOriginal()->isChannel()) {
_name.setText(st::semiboldTextStyle, lng_forwarded_channel(lt_channel, App::peerName(parent()->fromOriginal())), _textNameOptions);
} else {