Skip to content

Commit

Permalink
Private groups, Mobile app - fixes (still WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Dec 13, 2024
1 parent 67c15f5 commit 6569c41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/components/modules/MessagesTopCenter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,13 @@ class MessagesTopCenter extends React.Component {
this.setState({ refreshing: true })
e.preventDefault()
e.stopPropagation()
this.props.fetchState(this.props.to)
this.props.loginUser()
setTimeout(() => {
this.setState({ refreshing: false })
}, 500)
this.props.fetchState(this.props.to)
setTimeout(() => {
this.setState({ refreshing: false })
}, 500)
}, 1000)
}

render() {
Expand Down
5 changes: 4 additions & 1 deletion src/components/pages/Messages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ class Messages extends React.Component {
return false
}
try {
window.errorLogs.push({ details: { watchGroup: to } })
await queueWatch(username, to)
console.log('watchGroup - ', to)
window.errorLogs.push({ details: { watchGroup: 'ok' } })
return true
} catch (err) {
console.error('watchGroup - ', to, err)
Expand Down Expand Up @@ -905,7 +907,7 @@ class Messages extends React.Component {
};

_renderMessagesTopCenter = ({ isSmall }) => {
const { fetchState, to } = this.props
const { fetchState, loginUser, to } = this.props
const toAcc = this.getToAcc()
const { notifyErrors, } = this.state

Expand All @@ -916,6 +918,7 @@ class Messages extends React.Component {
notifyErrors={notifyErrors}
errorLogs={window.errorLogs}
fetchState={fetchState}
loginUser={loginUser}
/>
};

Expand Down

0 comments on commit 6569c41

Please sign in to comment.