dylex / slack-libpurple

Slack module for libpurple
GNU General Public License v2.0
280 stars 38 forks source link

Cache the last used thread ID for each channel. #164

Closed kacf closed 2 years ago

kacf commented 2 years ago

This saves one roundtrip for every reply, and is noticably faster.

Signed-off-by: Kristian Amlie kristian.amlie@northern.tech

dylex commented 2 years ago

Thanks, I've tried to simplify this a bit and generalize it to all conversations, but seems to still work for me. Let me know if you see any issues.

kacf commented 2 years ago

Thanks! Just looking at the code, it seems to be a good cleanup; I should have spotted it myself! I'll run it and report back if I hit any issues.