mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Fix Bridge Settings Tab
This commit is contained in:
@@ -37,7 +37,7 @@ export default class BridgeSettingsTab extends React.Component {
|
|||||||
if (!content || !content.channel || !content.protocol) {
|
if (!content || !content.channel || !content.protocol) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return <BridgeTile room={room} ev={event}></BridgeTile>;
|
return <BridgeTile key={event.getId()} room={room} ev={event}></BridgeTile>;
|
||||||
}
|
}
|
||||||
|
|
||||||
static getBridgeStateEvents(roomId) {
|
static getBridgeStateEvents(roomId) {
|
||||||
@@ -45,7 +45,7 @@ export default class BridgeSettingsTab extends React.Component {
|
|||||||
const roomState = (client.getRoom(roomId)).currentState;
|
const roomState = (client.getRoom(roomId)).currentState;
|
||||||
|
|
||||||
const bridgeEvents = [].concat(...BRIDGE_EVENT_TYPES.map((typeName) =>
|
const bridgeEvents = [].concat(...BRIDGE_EVENT_TYPES.map((typeName) =>
|
||||||
Object.values(roomState.events[typeName] || {}),
|
Array.from(roomState.events.get(typeName).values()),
|
||||||
));
|
));
|
||||||
|
|
||||||
return bridgeEvents;
|
return bridgeEvents;
|
||||||
|
|||||||
Reference in New Issue
Block a user