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:
TheOneWithTheBraid 2022-11-15 11:39:50 +01:00
commit d90b02bc17
9 changed files with 164 additions and 5 deletions

View file

@ -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(