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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user