Merge branch 'master' of gitlab.com:ChristianPauly/fluffychat-flutter
commit
a08801f673
@ -1,4 +1,6 @@
|
||||
# Version 0.2.3 - 2020-01-XX
|
||||
# Version 0.2.3 - 2020-01-08
|
||||
### New features
|
||||
- Added changelog
|
||||
- Added copy button
|
||||
- Added copy button
|
||||
### Fixes
|
||||
- Groups without name now have a "Group with" prefix
|
||||
|
@ -0,0 +1,16 @@
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
|
||||
class RoomNameCalculator {
|
||||
final Room room;
|
||||
|
||||
const RoomNameCalculator(this.room);
|
||||
|
||||
String get name {
|
||||
if (room.name.isEmpty &&
|
||||
room.canonicalAlias.isEmpty &&
|
||||
!room.isDirectChat) {
|
||||
return "Group with ${room.displayname}";
|
||||
}
|
||||
return room.displayname;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue