You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	@@ -26,15 +26,20 @@ limitations under the License.
 | 
				
			|||||||
    max-width: 75%;
 | 
					    max-width: 75%;
 | 
				
			||||||
    box-sizing: border-box;
 | 
					    box-sizing: border-box;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    .mx_CallEvent_content {
 | 
					    .mx_CallEvent_info {
 | 
				
			||||||
        display: flex;
 | 
					        display: flex;
 | 
				
			||||||
        flex-direction: column;
 | 
					        flex-direction: row;
 | 
				
			||||||
        margin-left: 10px; // To match mx_CallEvent
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        .mx_CallEvent_type {
 | 
					        .mx_CallEvent_info_basic {
 | 
				
			||||||
            font-weight: 400;
 | 
					            display: flex;
 | 
				
			||||||
            color: gray;
 | 
					            flex-direction: column;
 | 
				
			||||||
            line-height: $font-14px;
 | 
					            margin-left: 10px; // To match mx_CallEvent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            .mx_CallEvent_type {
 | 
				
			||||||
 | 
					                font-weight: 400;
 | 
				
			||||||
 | 
					                color: gray;
 | 
				
			||||||
 | 
					                line-height: $font-14px;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,21 +31,26 @@ export default class CallEvent extends React.Component<IProps> {
 | 
				
			|||||||
        const event = this.props.mxEvent;
 | 
					        const event = this.props.mxEvent;
 | 
				
			||||||
        const sender = event.sender ? event.sender.name : event.getSender();
 | 
					        const sender = event.sender ? event.sender.name : event.getSender();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        let content;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
            <div className="mx_CallEvent">
 | 
					            <div className="mx_CallEvent">
 | 
				
			||||||
                <MemberAvatar
 | 
					                <div className="mx_CallEvent_info">
 | 
				
			||||||
                    member={event.sender}
 | 
					                    <MemberAvatar
 | 
				
			||||||
                    width={32}
 | 
					                        member={event.sender}
 | 
				
			||||||
                    height={32}
 | 
					                        width={32}
 | 
				
			||||||
                />
 | 
					                        height={32}
 | 
				
			||||||
                <div className="mx_CallEvent_content">
 | 
					                    />
 | 
				
			||||||
                    <div>
 | 
					                    <div className="mx_CallEvent_info_basic">
 | 
				
			||||||
                        {sender}
 | 
					                        <div>
 | 
				
			||||||
                    </div>
 | 
					                            { sender }
 | 
				
			||||||
                    <div className="mx_CallEvent_type">
 | 
					                        </div>
 | 
				
			||||||
                        { this.props.callState.isVoice ? _t("Voice call") : _t("Video call") }
 | 
					                        <div className="mx_CallEvent_type">
 | 
				
			||||||
 | 
					                            { this.props.callState.isVoice ? _t("Voice call") : _t("Video call") }
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
 | 
					                { content }
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user