Describe the buggetThreadInfo() throws an error when provided a valid userID (one-to-one chat). Looking at the type definition for ThreadInfo, it seems like getThreadInfo() should still return a ThreadInfo object but with some values as null.
TypeError: Cannot read property 'emoji' of null
at Object.formatThreadInfo (/home/adam/dev/auto-messenger/node_modules/ts-messenger-api/dist/lib/formatters.js:393:53)
at /home/adam/dev/auto-messenger/node_modules/ts-messenger-api/dist/lib/api.js:977:51
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Environment (please complete the following information):
Describe the bug
getThreadInfo()
throws an error when provided a valid userID (one-to-one chat). Looking at the type definition forThreadInfo
, it seems likegetThreadInfo()
should still return aThreadInfo
object but with some values asnull
.To Reproduce
Environment (please complete the following information):