improved sync, version 0.8.28.dev

This commit is contained in:
John Preston 2015-06-18 20:50:41 +03:00
parent 689b51e607
commit 052e0b827a
2 changed files with 7 additions and 3 deletions

View File

@ -640,7 +640,7 @@ void Application::checkMapVersion() {
psRegisterCustomScheme();
if (Local::oldMapVersion()) {
QString versionFeatures;
if (DevChannel && Local::oldMapVersion() < 8027) {
if (DevChannel && Local::oldMapVersion() < 8028) {
versionFeatures = lang(lng_new_version_minor);// QString::fromUtf8("\xe2\x80\x94 IPv6 connections support\n\xe2\x80\x94 Bug fixes and minor stuff");// .replace('@', qsl("@") + QChar(0x200D));
} else if (!DevChannel && Local::oldMapVersion() < 8024) {
versionFeatures = lng_new_version_text(lt_blog_link, qsl("https://telegram.org/blog/bot-revolution"));// lang(lng_new_version_text).trimmed();

View File

@ -2786,7 +2786,9 @@ void MentionsDropdown::updateFiltered(bool toDown) {
int32 index = 0;
for (ChatData::Participants::const_iterator i = _chat->participants.cbegin(), e = _chat->participants.cend(); i != e; ++i) {
UserData *user = i.key();
if (!user->botInfo || user->botInfo->commands.isEmpty()) continue;
if (!user->botInfo) continue;
if (!user->botInfo->inited) App::api()->requestFullPeer(user);
if (user->botInfo->commands.isEmpty()) continue;
bots.insert(user, true);
cnt += user->botInfo->commands.size();
}
@ -2801,7 +2803,9 @@ void MentionsDropdown::updateFiltered(bool toDown) {
if (_chat) {
for (MentionRows::const_iterator i = _chat->lastAuthors.cbegin(), e = _chat->lastAuthors.cend(); i != e; ++i) {
UserData *user = *i;
if (!user->botInfo || user->botInfo->commands.isEmpty()) continue;
if (!user->botInfo) continue;
if (!user->botInfo->inited) App::api()->requestFullPeer(user);
if (user->botInfo->commands.isEmpty()) continue;
for (int32 j = 0, l = user->botInfo->commands.size(); j < l; ++j) {
if (_filter.size() > 1) {
QString toFilter = (hasUsername || botStatus == 0 || botStatus == 2) ? user->botInfo->commands.at(j).command + '@' + user->username : user->botInfo->commands.at(j).command;