Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Commit

Permalink
Remove unnecessary text check
Browse files Browse the repository at this point in the history
  • Loading branch information
laptou committed Oct 2, 2020
1 parent 5ed8cbe commit 18e700c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,20 +240,7 @@ async fn handle_query(cx: UpdateWithCx<CallbackQuery>) -> ResponseResult<()> {
.await?;
return Ok(());
};

let text = if let Some(text) = msg.text() {
text
} else {
cx.bot
.answer_callback_query(query.id)
.text("Something's wrong with that message. Try this on another message.")
.show_alert(true)
.cache_time(1000)
.send()
.await?;
return Ok(());
};


let mut reactions_users = get_reactions_users(&msg).unwrap();

let reaction = query.data.unwrap().parse().unwrap();
Expand Down

0 comments on commit 18e700c

Please sign in to comment.