obsidian-telegram-sync icon indicating copy to clipboard operation
obsidian-telegram-sync copied to clipboard

FR: Make Insider feature "Process old messages" available not only on plugin reload

Open mnaoumov opened this issue 10 months ago • 6 comments

Currently Insider feature "Process old messages" works only on plugin reload. But it would be useful if this check is executed on some other events as well, such as running on schedule and having it is as a custom invocable command

mnaoumov avatar Apr 08 '24 16:04 mnaoumov

It is not clear why you need to process old messages when the plugin is not just reloading. If the plugin operates continuously, there won't be any old messages. Conversely, if the plugin doesn't work, scheduling and command become unnecessary.

soberhacker avatar Apr 15 '24 11:04 soberhacker

@soberhacker in my case, Obsidian is open all the time but it's not doing anything with the computer goes into the sleep mode. When the computer wakes up from it, it doesn't process the old messages appeared during the sleep time

mnaoumov avatar Apr 15 '24 11:04 mnaoumov

Ok, I will add processing of old messages after waking the computer from sleep

soberhacker avatar Apr 15 '24 11:04 soberhacker

Sleep mode is not the only trigger. For example what if the router was disconnected for some time and you didn't have Internet...

mnaoumov avatar Apr 15 '24 11:04 mnaoumov

I guess more realistic trigger would be to compare with the last successful fetch attempt and if it was way too far away, trigger the reload

mnaoumov avatar Apr 15 '24 12:04 mnaoumov

Try new 3.2.0 release!

P.S. I thought it would be easy, but in reality, it was fucking hard :)

soberhacker avatar Sep 25 '24 22:09 soberhacker