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

Support legacy groups in participant boxes.

This commit is contained in:
John Preston
2019-01-10 10:26:08 +04:00
parent 18c6be0d3b
commit a605c110a8
39 changed files with 3064 additions and 2649 deletions

View File

@@ -13,7 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/add_contact_box.h"
#include "boxes/report_box.h"
#include "boxes/create_poll_box.h"
#include "boxes/peer_list_controllers.h"
#include "boxes/peers/add_participants_box.h"
#include "boxes/peers/manage_peer_box.h"
#include "boxes/peers/edit_peer_info_box.h"
#include "ui/toast/toast.h"
@@ -368,7 +368,7 @@ void Filler::addChatActions(not_null<ChatData*> chat) {
lang(lng_profile_add_participant),
[chat] { AddChatMembers(chat); });
}
if (chat->canWrite()) {
if (chat->canSendPolls()) {
_addAction(
lang(lng_polls_create),
[=] { PeerMenuCreatePoll(chat); });
@@ -410,7 +410,7 @@ void Filler::addChannelActions(not_null<ChannelData*> channel) {
lang(lng_channel_add_members),
[channel] { PeerMenuAddChannelMembers(channel); });
}
if (channel->canWrite()) {
if (channel->canSendPolls()) {
_addAction(
lang(lng_polls_create),
[=] { PeerMenuCreatePoll(channel); });