Merge branch 'padding-1st-msg' into 'main'

Padding 1st msg

See merge request famedly/fluffychat!678
This commit is contained in:
Krille Fear 2022-01-14 06:47:09 +00:00
commit ce4916c1ca

View File

@ -126,10 +126,10 @@ class Message extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
if (!ownMessage && !sameSender) if (!sameSender)
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0, bottom: 4), padding: const EdgeInsets.only(left: 8.0, bottom: 4),
child: event.room.isDirectChat child: ownMessage || event.room.isDirectChat
? const SizedBox(height: 12) ? const SizedBox(height: 12)
: Text( : Text(
event.sender.calcDisplayname(), event.sender.calcDisplayname(),