mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Display admin badges in supergroups.
Also prefer std containers to Qt and OrderedSet in data_peer.
This commit is contained in:
@@ -98,7 +98,7 @@ private:
|
||||
QueuedNotification(HistoryItem *item, int forwardedCount)
|
||||
: history(item->history())
|
||||
, peer(history->peer)
|
||||
, author((item->hasFromName() && !item->isPost()) ? item->author() : nullptr)
|
||||
, author((!peer->isUser() && !item->isPost()) ? item->author() : nullptr)
|
||||
, item((forwardedCount > 1) ? nullptr : item)
|
||||
, forwardedCount(forwardedCount) {
|
||||
}
|
||||
|
@@ -510,7 +510,7 @@ void PeerMenuAddChannelMembers(not_null<ChannelData*> channel) {
|
||||
return;
|
||||
}
|
||||
auto callback = [channel](const MTPchannels_ChannelParticipants &result) {
|
||||
Auth().api().parseChannelParticipants(result, [&](
|
||||
Auth().api().parseChannelParticipants(channel, result, [&](
|
||||
int availableCount,
|
||||
const QVector<MTPChannelParticipant> &list) {
|
||||
auto already = (
|
||||
|
Reference in New Issue
Block a user