You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Fix displaying already stopped broadcasts in the timeline (#9470)
This commit is contained in:
@@ -23,7 +23,17 @@ export const mkVoiceBroadcastInfoStateEvent = (
|
||||
roomId: string,
|
||||
state: VoiceBroadcastInfoState,
|
||||
sender: string,
|
||||
startedInfoEvent?: MatrixEvent,
|
||||
): MatrixEvent => {
|
||||
const relationContent = {};
|
||||
|
||||
if (startedInfoEvent) {
|
||||
relationContent["m.relates_to"] = {
|
||||
event_id: startedInfoEvent.getId(),
|
||||
rel_type: "m.reference",
|
||||
};
|
||||
}
|
||||
|
||||
return mkEvent({
|
||||
event: true,
|
||||
room: roomId,
|
||||
@@ -32,6 +42,7 @@ export const mkVoiceBroadcastInfoStateEvent = (
|
||||
skey: sender,
|
||||
content: {
|
||||
state,
|
||||
...relationContent,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user