Using constant instead of many size divisions

This commit is contained in:
Leandro Borges Ferreira
2023-02-15 19:40:51 +01:00
parent 858b6afddb
commit 92a330cd71
2 changed files with 19 additions and 60 deletions
@@ -371,7 +371,7 @@ extension MessageX on Message {
if (quotedMessage != null) {
var quotedMessageLength =
(quotedMessage!.text?.biggestLine().length ?? 0) + 6;
if (quotedMessage!.attachments.isNotEmpty) {
quotedMessageLength += 40;
}