2018-01-10 16:13:33 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#include "history/view/history_view_message.h"
|
|
|
|
|
2018-01-11 22:33:26 +03:00
|
|
|
#include "history/history_message.h"
|
2018-01-11 18:51:59 +03:00
|
|
|
|
2018-01-10 16:13:33 +03:00
|
|
|
namespace HistoryView {
|
|
|
|
|
2018-01-11 22:33:26 +03:00
|
|
|
Message::Message(not_null<HistoryMessage*> data, Context context)
|
|
|
|
: Element(data, context) {
|
2018-01-10 16:13:33 +03:00
|
|
|
}
|
|
|
|
|
2018-01-11 22:33:26 +03:00
|
|
|
not_null<HistoryMessage*> Message::message() const {
|
|
|
|
return static_cast<HistoryMessage*>(data().get());
|
2018-01-11 16:07:29 +03:00
|
|
|
}
|
|
|
|
|
2018-01-10 16:13:33 +03:00
|
|
|
} // namespace HistoryView
|