]> cat aescling's git repositories - mastodon.git/commit
Better manage subscriptionCounters (#14608)
authorDaigo 3 Dango <zunda@users.noreply.github.com>
Mon, 24 Aug 2020 12:06:45 +0000 (12:06 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Aug 2020 12:06:45 +0000 (14:06 +0200)
commit9669557be1d9c8577564242861bdbad9b821906a
treebc2bfc3fe99d8375bff9b8a505b021b458385510
parent46210a65d1cc4c53fb69fd9c904bdf2d5679d179
Better manage subscriptionCounters (#14608)

Before this change:
- unsubscribe() was not called for a disconnection
- It seems that WebSocketClient calls connected() and reconnected().
  subscriptionCounters were incremented twice for a single reconnection,
  first from connected() and second from reconnected()

This might be a an additional change to
https://github.com/tootsuite/mastodon/pull/14579
to recover subscriptions after a reconnect.
app/javascript/mastodon/stream.js