Skip to content

Commit

Permalink
new beta 9014003 ready - info about last 200 members in channel added…
Browse files Browse the repository at this point in the history
…, no key destroy after 404 error immidiate after connection
  • Loading branch information
john-preston committed Dec 6, 2015
1 parent edf850b commit b17c277
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Telegram/Resources/lang.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
"lng_channel_add_admins" = "New administrator";
"lng_channel_add_members" = "Add members";
"lng_channel_members" = "Members";
"lng_channel_only_last_shown" = "Only last {count:_not_used_|# member|# members} are shown here";
"lng_channel_only_last_shown" = "Only the last {count:_not_used_|# member|# members} are shown here";
"lng_channel_admins" = "Administrators";
"lng_channel_add_admin" = "Add Administrator";
"lng_channel_admin_sure" = "Add {user} to administrators?";
Expand Down
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/boxes/contactsbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ MembersInner::MembersInner(ChannelData *channel, MembersFilter filter) : TWidget
, _kickBox(0)
, _loading(true)
, _loadingRequestId(0)
, _aboutWidth(st::boxWideWidth - st::contactsPadding.left() - st::contactsPhotoSize - st::contactsPadding.left() - st::contactsPadding.right())
, _aboutWidth(st::boxWideWidth - st::contactsPadding.left() - st::contactsPadding.right())
, _about(_aboutWidth)
, _aboutHeight(0) {
connect(App::wnd(), SIGNAL(imageLoaded()), this, SLOT(update()));
Expand Down Expand Up @@ -1828,7 +1828,7 @@ void MembersInner::paintEvent(QPaintEvent *e) {
}
if (to == _rows.size() && (_rows.size() < _channel->count || _rows.size() >= cMaxGroupCount())) {
p.setPen(st::stickersReorderFg);
_about.drawLeft(p, st::contactsPadding.left() + st::contactsPhotoSize + st::contactsPadding.left(), st::stickersReorderPadding.top(), _aboutWidth, width());
_about.draw(p, st::contactsPadding.left(), st::stickersReorderPadding.top(), _aboutWidth, style::al_center);
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions Telegram/SourceFiles/mtproto/mtpConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1964,12 +1964,12 @@ void MTProtoConnectionPrivate::restart(bool maybeBadKey) {
mtpAuthKeyPtr key(sessionData->getKey());
if (key) {
if (!sessionData->isCheckedKey()) {
if (maybeBadKey) {
clearMessages();
keyId = mtpAuthKey::RecreateKeyId;
// retryTimeout = 1; // no ddos please
LOG(("MTP Info: key may be bad and was not checked - will be destroyed"));
}
// if (maybeBadKey) {
// clearMessages();
// keyId = mtpAuthKey::RecreateKeyId;
//// retryTimeout = 1; // no ddos please
LOG(("MTP Info: key may be bad and was not checked - but won't be destroyed, no log outs because of bad server right now.."));
// }
} else {
sessionData->setCheckedKey(false);
}
Expand Down

0 comments on commit b17c277

Please sign in to comment.