Commit 4406e255 authored by Wilko Manger's avatar Wilko Manger

Fix error when room has no name and no avatar

Fixes PATTLE-8.
Fixes PATTLE-9.
parent 7442ecc3
Pipeline #333 passed with stages
in 3 minutes and 22 seconds
......@@ -106,7 +106,8 @@ class ChatOverviewPageState extends State<ChatOverviewPage> {
} else {
avatar = CircleAvatar(
radius: 24,
child: Text(chat.name[0],
child: Text(
chat.name.length > 1 ? chat.name[0] : chat.room.id.toString()[1],
style: Theme.of(context).textTheme.display1.copyWith(
color: Colors.white,
fontSize: 22
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment