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 39f99d16eb7416876d5bdb110c73c50ed5a9a3a1
parent 8d8b781a4322d0c6c84779af1fa80bcdcff321ba
Author: Matthew Horan <matt@matthoran.com>
Date:   Mon, 29 Oct 2018 21:04:41 -0400

Fetch new lines for current buffer on mount

When resuming the app and a previously open buffer is restored, be sure
to load new lines. Otherwise, any messages sent to the buffer will be
missing.

Diffstat:
Msrc/usecase/App.tsx | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/usecase/App.tsx b/src/usecase/App.tsx @@ -101,6 +101,11 @@ class App extends React.Component<Props, State> { componentDidMount() { Dimensions.addEventListener('change', this.updateWidth); + + const { currentBufferId, fetchBufferInfo } = this.props; + if (currentBufferId) { + fetchBufferInfo(this.props.currentBufferId); + } } componentWillUnmount() {