feat: implement cute events
Cute events help against social distancing. You can send googly eyes, hugs and cuddles. Fixes: https://rail.chat/@AgathaSorceress@eldritch.cafe/109336005433123570 Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
parent
38636418c5
commit
d90b02bc17
9 changed files with 164 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ import '../../../utils/platform_infos.dart';
|
|||
import '../../../utils/url_launcher.dart';
|
||||
import '../../bootstrap/bootstrap_dialog.dart';
|
||||
import 'audio_player.dart';
|
||||
import 'cute_events.dart';
|
||||
import 'html_message.dart';
|
||||
import 'image_bubble.dart';
|
||||
import 'map_bubble.dart';
|
||||
|
|
@ -108,6 +109,8 @@ class MessageContent extends StatelessWidget {
|
|||
case MessageTypes.Sticker:
|
||||
if (event.redacted) continue textmessage;
|
||||
return Sticker(event);
|
||||
case CuteEventContent.eventType:
|
||||
return CuteContent(event);
|
||||
case MessageTypes.Audio:
|
||||
if (PlatformInfos.isMobile || PlatformInfos.isMacOS) {
|
||||
return AudioPlayerWidget(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue