Move isOnlyEmoji utility function into String extension
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user