rumdood / Moneo

Telegram Bot for Managing Scheduled Tasks and Reminders
MIT License
2 stars 0 forks source link

Hiding inactive tasks from the complete tasks list #23

Closed rumdood closed 6 months ago

rumdood commented 6 months ago

Fixes a previously unknown issue where if two tasks have similar names and one is inactive, the user can get stuck in a loop trying to complete the active task.

This is a first step fix that prevents the bot from asking the user if they meant to complete an inactive task. Will need to come up with a way to handle a situation when the user has two active tasks with similar enough names that the bot can't tell the difference.

Ultimately will need to either enforce name uniqueness across tasks for a given user, or will need to support completing a task by ID - which is complicated by the inability for the user to necessarily differentiate either.