mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
chat: potential fix for #1692
This commit is contained in:
parent
afc3338f68
commit
5560482897
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -267,7 +267,7 @@ export class ChatScreen extends Component {
|
||||
numMsgs={lastMsgNum}
|
||||
station={state.station}
|
||||
circle={state.circle}
|
||||
security={config.con}
|
||||
security={!!config ? config.con : {}}
|
||||
placeholder='Message...' />
|
||||
</div>
|
||||
)
|
||||
|
@ -61,13 +61,23 @@ export class Root extends Component {
|
||||
let internalStation = host + '/hall-internal-' + circle;
|
||||
|
||||
if (internalStation in state.configs) {
|
||||
unreads[cir] =
|
||||
state.configs[internalStation].red <=
|
||||
messages[cir][messages[cir].length - 1].num;
|
||||
if (!!state.configs[internalStation]) {
|
||||
unreads[cir] =
|
||||
state.configs[internalStation].red <=
|
||||
messages[cir][messages[cir].length - 1].num;
|
||||
} else {
|
||||
unreads[cir] = false;
|
||||
}
|
||||
} else if (cir in state.configs) {
|
||||
if (!!state.configs[cir]) {
|
||||
unreads[cir] =
|
||||
state.configs[cir].red <=
|
||||
messages[cir][messages[cir].length - 1].num;
|
||||
} else {
|
||||
unreads[cir] = false;
|
||||
}
|
||||
} else {
|
||||
unreads[cir] =
|
||||
state.configs[cir].red <=
|
||||
messages[cir][messages[cir].length - 1].num;
|
||||
unreads[cir] = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -110,6 +110,7 @@ export class Sidebar extends Component {
|
||||
const { props, state } = this;
|
||||
let station = props.match.params.ship + '/' + props.match.params.station;
|
||||
|
||||
console.log(props.circles);
|
||||
let sidebarItems = props.circles
|
||||
.filter((cir) => {
|
||||
return !cir.includes('hall-internal-');
|
||||
|
Loading…
Reference in New Issue
Block a user