weechatRN

Weechat relay client for iOS using websockets https://github.com/mhoran/weechatRN
git clone http://git.hanabi.in/repos/weechatRN.git
Log | Files | Refs | README | LICENSE

commit 6a5ea5f6b9d1187bf2d5ecbc6970a351709af36d
parent 8df7195937a925126cd192e56771fb551217ad68
Author: Matthew Horan <matt@matthoran.com>
Date:   Sun, 28 Oct 2018 09:55:06 -0400

Return state when removing localvar for closed buffer

There was a guard clause to handle closed buffers, but that meant if the
buffer was closed, nonsense was returned. This caused a warning in the
app because incomplete buffer data was included in BufferState.

Diffstat:
Msrc/store/buffers.ts | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/store/buffers.ts b/src/store/buffers.ts @@ -41,6 +41,8 @@ export default (state: BufferState = initialState, action): BufferState => { } } }; + } else { + return state; } } case "BUFFER_RENAMED": {