We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 675de8a + 4386dd5 commit 3d7b543Copy full SHA for 3d7b543
1 file changed
rustmail/src/commands/add_reminder/text_command/add_reminder.rs
@@ -62,7 +62,7 @@ pub async fn add_reminder(
62
63
let trigger_timestamp = trigger_dt.with_timezone(&config.bot.timezone).timestamp();
64
65
- let thread = match get_thread_by_user_id(msg.author.id, pool).await {
+ let thread = match get_thread_by_channel_id(&msg.channel_id.to_string(), pool).await {
66
Some(t) => t,
67
None => {
68
return Err(ModmailError::Thread(ThreadError::ThreadNotFound));
0 commit comments