Fix -Wunused-variable warnings
This commit is contained in:
@@ -197,7 +197,6 @@ void GroupMembersWidget::refreshMembers() {
|
||||
}
|
||||
fillChatMembers(chat);
|
||||
} else if (const auto megagroup = peer()->asMegagroup()) {
|
||||
auto &megagroupInfo = megagroup->mgInfo;
|
||||
if (megagroup->lastParticipantsRequestNeeded()) {
|
||||
megagroup->session().api().requestLastParticipants(megagroup);
|
||||
}
|
||||
@@ -213,7 +212,7 @@ void GroupMembersWidget::checkSelfAdmin(not_null<ChatData*> chat) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto self = chat->session().user();
|
||||
//const auto self = chat->session().user();
|
||||
//if (chat->amAdmin() && !chat->admins.contains(self)) {
|
||||
// chat->admins.insert(self);
|
||||
//} else if (!chat->amAdmin() && chat->admins.contains(self)) {
|
||||
|
||||
@@ -62,7 +62,6 @@ void PeerListWidget::visibleTopBottomUpdated(int visibleTop, int visibleBottom)
|
||||
void PeerListWidget::paintContents(Painter &p) {
|
||||
auto left = getListLeft();
|
||||
auto top = getListTop();
|
||||
auto memberRowWidth = rowWidth();
|
||||
|
||||
auto from = floorclamp(_visibleTop - top, _st.height, 0, _items.size());
|
||||
auto to = ceilclamp(_visibleBottom - top, _st.height, 0, _items.size());
|
||||
|
||||
Reference in New Issue
Block a user