shady2k / logseq-inbox-telegram-plugin

MIT License
78 stars 5 forks source link

collapsed block creates duplicates #29

Open santiyounger opened 1 year ago

santiyounger commented 1 year ago

Hey! First, thank you so much for the amazing plugin! it works great, it's exactly what I needed, so really appreciate your hard work

This is a feature request to add messages from telegram to the #inbox block while this block is collapsed

Current behavior

If I leave the #inbox block uncollapsed then all tasks work as expected, and they all go below the block correctly (as children blocks)

image

However, if I collapse the #inbox block, then new messages from telegram create new #inbox blocks image

when I collapse a block in logseq it has a collapsed:: true under that block (when seen as plaintext).

Seems like the collapsed state of the block confuses the plugin, and it creates a duplicate which isn't ideal

My current workaround

I like having this block at the top of my daily page (this is the default behavior) however I don't like having it uncollapsed there since it takes too much space, so ideally I'd like to have it collapsed at the top, but since this is not currently possible (since it creates duplicated) I'm moving this block at the end and leaving it uncollapsed there

Let me know if what I described made sense, it would be amazing to be able to collapse the block without getting duplicates

Specs

Logseq Version 0.8.8 Inbox Telegram Plugin v0.0.9 Windows 11 (let me know if other details are relevant)

Thanks a lot 🙏

santiyounger commented 1 year ago

Update: I kept using the plugin, and things worked with collapsed blocks without creating duplicates. This made me realize this wasn't a feature request, but rather a bug I was having. I just setup the plugin today, and I was having the duplicate issue. For now, things are working okay. I'll report if I have the same issue again