Skip to content

Commit

Permalink
Do not add messages sent via bot to list of active live locations.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: fdd83122b83f2b20d2ab460c9d27dcf320a53c4d
  • Loading branch information
levlam committed Nov 5, 2019
1 parent a0fa744 commit 7de4f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14775,7 +14775,8 @@ void MessagesManager::on_load_active_live_location_messages_finished() {
void MessagesManager::try_add_active_live_location(DialogId dialog_id, const Message *m) {
CHECK(m != nullptr);

if (m->content->get_type() != MessageContentType::LiveLocation || m->is_failed_to_send) {
if (m->content->get_type() != MessageContentType::LiveLocation || m->is_failed_to_send ||
m->via_bot_user_id.is_valid() || m->forward_info != nullptr) {
return;
}

Expand Down

0 comments on commit 7de4f8b

Please sign in to comment.