Move isOnlyEmoji utility function into String extension

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-12 15:30:45 +05:30
parent 85aaf9eab8
commit 0605cbc3b4
5 changed files with 26 additions and 18 deletions
+1 -1
View File
@@ -938,7 +938,7 @@ class _MessageWidgetState extends State<MessageWidget> {
);
}
bool get isOnlyEmoji => textIsOnlyEmoji(widget.message.text);
bool get isOnlyEmoji => widget.message.text.isOnlyEmoji;
Color _getBackgroundColor() {
if (hasQuotedMessage) {