2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 16:15:13 +00:00

channel creation almost done

This commit is contained in:
John Preston
2015-09-16 16:04:08 +03:00
parent 77a92c62f7
commit 41e7ce11a0
36 changed files with 1958 additions and 428 deletions

View File

@@ -1461,7 +1461,7 @@ bool History::isReadyFor(MsgId msgId, bool check) const {
void History::getReadyFor(MsgId msgId) {
if (!isReadyFor(msgId, true)) {
clear(true);
newLoaded = (msgId == ShowAtTheEndMsgId) || (lastMsg && !lastMsg->detached());
newLoaded = (msgId == ShowAtTheEndMsgId);
oldLoaded = false;
lastWidth = 0;
lastShowAtMsgId = msgId;
@@ -6386,6 +6386,11 @@ void HistoryServiceMsg::setMessageByAction(const MTPmessageAction &action) {
text = lng_action_created_channel(lt_title, textClean(qs(d.vtitle)));
} break;
case mtpc_messageActionChannelToggleComments: {
const MTPDmessageActionChannelToggleComments &d(action.c_messageActionChannelToggleComments());
text = lang(d.venabled.v ? lng_action_comments_enabled : lng_action_comments_disabled);
} break;
case mtpc_messageActionChatDeletePhoto: {
text = fromChannel() ? lang(lng_action_removed_photo_channel) : lng_action_removed_photo(lt_from, from);
} break;