-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
When fetching a comment that has a reaction (e.g., ✅), the reactions
field in the returned Comment
object is not structured as expected. The key for the reaction is an empty string (''
) instead of the emoji character itself ('✅'
).
Expected behaviour
The reactions
object should be a dictionary where the keys are the string representation of the reaction emojis. For a "check mark" reaction from a user with ID 123456
, the object should look like this:
{
"✅": ["123456"]
}
Actual behavior
Instead, the key for the reaction is an empty string. The actual returned object looks like this:
{
"": ["123456"]
}
Is reproducible
Yes
To reproduce
Steps to reproduce the behavior:
- In Todoist, create a task and add a comment to it.
- Add a reaction (e.g., the ✅ emoji) to that comment.
- Using
@doist/todoist-api-typescript
, fetch that comment using theapi.getComment(commentId)
method. - Inspect the
reactions
property of the returned comment object.
This issue also appears when processing comment updates from the Sync API when notes
is included in resource_types
.
Screenshots

Version information:
- Package version: "@doist/todoist-api-typescript@^5.0.1"
Additional information
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working