Implement jitsi
This commit is contained in:
parent
d110910ef0
commit
f721045d00
7 changed files with 145 additions and 22 deletions
|
|
@ -99,6 +99,19 @@ class MessageContent extends StatelessWidget {
|
|||
case MessageTypes.Notice:
|
||||
case MessageTypes.Emote:
|
||||
default:
|
||||
if (event.content['msgtype'] == Matrix.callNamespace) {
|
||||
return RaisedButton(
|
||||
color: Theme.of(context).backgroundColor,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(Icons.phone),
|
||||
Text(I18n.of(context).videoCall),
|
||||
],
|
||||
),
|
||||
onPressed: () => launch(event.body),
|
||||
);
|
||||
}
|
||||
return LinkText(
|
||||
text: event.getLocalizedBody(context, hideReply: true),
|
||||
textStyle: TextStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue