feat: more implementation.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-28 21:07:02 +05:30
committed by xsahil03x
parent f246de55a1
commit e8de28854b
93 changed files with 883 additions and 843 deletions
@@ -36,11 +36,11 @@ class StreamMessagePreviewText extends StatelessWidget {
final messageTextParts = [
...messageAttachments.map((it) {
if (it.type == 'image') {
if (it.type == AttachmentType.image) {
return '📷';
} else if (it.type == 'video') {
} else if (it.type == AttachmentType.video) {
return '🎬';
} else if (it.type == 'giphy') {
} else if (it.type == AttachmentType.giphy) {
return '[GIF]';
}
return it == message.attachments.last