Handle group call redaction (#10465)
Redacted group call events should be interpreted as terminated calls.
This commit is contained in:
parent
f1667870a0
commit
edef4cc52e
4 changed files with 25 additions and 2 deletions
|
@ -168,7 +168,7 @@ export const CallEvent = forwardRef<any, CallEventProps>(({ mxEvent }, ref) => {
|
|||
.getRoom(mxEvent.getRoomId())!
|
||||
.currentState.getStateEvents(mxEvent.getType(), mxEvent.getStateKey()!)!;
|
||||
|
||||
if ("m.terminated" in latestEvent.getContent()) {
|
||||
if ("m.terminated" in latestEvent.getContent() || latestEvent.isRedacted()) {
|
||||
// The call is terminated
|
||||
return (
|
||||
<div className="mx_CallEvent_wrapper" ref={ref}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue