Fix some misprints.

This commit is contained in:
levlam 2021-09-06 13:58:40 +03:00
parent bd4a49b80e
commit 0ec10947d5
7 changed files with 12 additions and 12 deletions

View File

@ -32,8 +32,8 @@ cd <path to TDLib sources>/example/java/bin
java '-Djava.library.path=.' org/drinkless/tdlib/example/Example
```
If you get "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/".
If you receive "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/".
If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared OpenSSL and zlib libraries to `bin/`.
If you receive java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared OpenSSL and zlib libraries to `bin/`.
In case you compiled the example as 32-bit version, you may need to give -d32 parameter to Java.

View File

@ -1069,7 +1069,7 @@ tl_object_ptr<td_api::venue> copy(const td_api::venue &obj) {
template <>
tl_object_ptr<td_api::formattedText> copy(const td_api::formattedText &obj) {
// there is no entities in the game text
// there are no entities in the game text
return make_tl_object<td_api::formattedText>(obj.text_, vector<tl_object_ptr<td_api::textEntity>>());
}

View File

@ -8565,7 +8565,7 @@ void MessagesManager::get_dialog_statistics_url(DialogId dialog_id, const string
return promise.set_error(Status::Error(3, "Can't access the chat"));
}
if (dialog_id.get_type() == DialogType::SecretChat) {
return promise.set_error(Status::Error(500, "There is no statistics for secret chats"));
return promise.set_error(Status::Error(500, "There are no statistics for secret chats"));
}
td_->create_handler<GetStatsUrlQuery>(std::move(promise))->send(dialog_id, parameters, is_dark);
@ -11373,7 +11373,7 @@ void MessagesManager::repair_channel_server_unread_count(Dialog *d) {
return;
}
if (!need_unread_counter(d->order)) {
// there is no unread count in left channels
// there are no unread counters in left channels
return;
}
if (!d->need_repair_channel_server_unread_count) {
@ -19479,7 +19479,7 @@ Status MessagesManager::view_messages(DialogId dialog_id, MessageId top_thread_m
return Status::Error(400, "Invalid message thread ID specified");
}
if (dialog_id.get_type() != DialogType::Channel || is_broadcast_channel(dialog_id)) {
return Status::Error(400, "There is no message threads in the chat");
return Status::Error(400, "There are no message threads in the chat");
}
}

View File

@ -1141,10 +1141,10 @@ class MessagesManager final : public Actor {
DialogId dialog_id;
MessageId last_new_message_id; // identifier of the last known server message received from update, there should be
// no server messages after it
MessageId last_message_id; // identifier of the message after which currently there is no any message, i.e. a
MessageId last_message_id; // identifier of the message after which currently there are no messages, i.e. a
// message without a gap after it, memory only
MessageId first_database_message_id; // identifier of the first message in the database, needed
// until there is no gaps in the database
// until there are no gaps in the database
MessageId last_database_message_id; // identifier of the last local or server message, if last_database_message_id
// is known and last_message_id is known, then last_database_message_id <=
// last_message_id

View File

@ -1059,7 +1059,7 @@ void NotificationManager::flush_pending_updates(int32 group_id, const char *sour
// all edits of notifications from edited_notification_ids
// deletions of a notification can be removed, only if the addition of the notification has already been deleted
// deletions of all unkept notifications can be moved to the first updateNotificationGroup
// after that at every moment there is no more active notifications than in the last moment,
// after that at every moment there are no more active notifications than in the last moment,
// so left deletions after add/edit can be safely removed and following additions can be treated as edits
// we still need to keep deletions coming first, because we can't have 2 consequent additions
// from all additions of the same notification, we need to preserve the first, because it can be with sound,

View File

@ -4036,8 +4036,8 @@ void StickersManager::on_get_archived_sticker_sets(
LOG(ERROR) << "Receive " << total_count << " as total count of archived sticker sets";
}
// if 0 sticker sets are received, then set offset_sticker_set_id was found and there is no stickers after it
// or it wasn't found and there is no archived sets at all
// if 0 sticker sets are received, then set offset_sticker_set_id was found and there are no stickers after it
// or it wasn't found and there are no archived sets at all
bool is_last =
sticker_sets.empty() && (!offset_sticker_set_id.is_valid() ||
(!sticker_set_ids.empty() && offset_sticker_set_id == sticker_set_ids.back()));

View File

@ -612,7 +612,7 @@ void WebPagesManager::update_web_page_instant_view(WebPageId web_page_id, WebPag
auto previous_queries =
load_web_page_instant_view_queries.partial.size() + load_web_page_instant_view_queries.full.size();
if (previous_queries == 0) {
// try to load it only if there is no pending load queries
// try to load it only if there are no pending load queries
load_web_page_instant_view(web_page_id, false, Auto());
return;
}