2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Unify legacy and megagroups information edit.

This commit is contained in:
John Preston
2019-01-08 17:57:22 +04:00
parent ff728e2fc1
commit 18c6be0d3b
28 changed files with 273 additions and 759 deletions

View File

@@ -109,7 +109,7 @@ History *FindWastedPin() {
void AddChatMembers(not_null<ChatData*> chat) {
if (chat->count >= Global::ChatSizeMax() && chat->amCreator()) {
Ui::show(Box<ConvertToSupergroupBox>(chat));
// #TODO convert and add inside AddParticipantsBoxController?
} else {
AddParticipantsBoxController::Start(chat);
}
@@ -122,7 +122,7 @@ bool PinnedLimitReached(Dialogs::Key key) {
return false;
}
// Some old chat, that was converted, maybe is still pinned.
if (auto wasted = FindWastedPin()) {
if (const auto wasted = FindWastedPin()) {
Auth().data().setPinnedDialog(wasted, false);
Auth().data().setPinnedDialog(key, true);
Auth().api().savePinnedOrder();