Skip to content

Commit

Permalink
fixes #221 - fix crash when receiving telegram custom reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Apr 27, 2024
1 parent 3a4cdc7 commit 9b0e40d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.71"
#define NCHAT_VERSION "4.72"
2 changes: 2 additions & 0 deletions lib/tgchat/src/tgchat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3106,6 +3106,8 @@ void TgChat::Impl::GetMsgReactions(td::td_api::object_ptr<td::td_api::messageInt
for (auto it = messageReactions->reactions_.begin(); it != messageReactions->reactions_.end(); ++it)
{
auto messageReaction = td::move_tl_object_as<td::td_api::messageReaction>(*it);
if (messageReaction->type_->get_id() != td::td_api::reactionTypeEmoji::ID) continue;

auto reactionTypeEmoji = td::move_tl_object_as<td::td_api::reactionTypeEmoji>(messageReaction->type_);
if (reactionTypeEmoji)
{
Expand Down
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "April 2024" "nchat v4.71" "User Commands"
.TH NCHAT "1" "April 2024" "nchat v4.72" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down

0 comments on commit 9b0e40d

Please sign in to comment.