ubergeek42 / weechat-android

Simple Weechat-Relay Android Client
524 stars 103 forks source link

Implement _buffer_cleared handler #577

Open mhoran opened 9 months ago

mhoran commented 9 months ago

When the relay sends _buffer_cleared, we need to clear the buffer in weechat-android. This happens with some regularity with wee-slack, which will re-paint a buffer on reconnect or loading backlog from the server in a newly (re)-opened buffer. Currently this can result in duplicated or out of order messages in the buffer when the backlog is loaded.

See https://github.com/mhoran/weechatRN/commit/497498135ca9f345a18224d6fe24a916314d02a3.