fix: Last bits for the release

This commit is contained in:
Christian Pauly 2020-09-21 19:21:24 +02:00
parent 165c64ce36
commit 1db9bdd975
6 changed files with 44 additions and 25 deletions

View file

@ -235,7 +235,9 @@ class ChatListItem extends StatelessWidget {
: Text(
room.lastEvent?.getLocalizedBody(
L10n.of(context),
withSenderNamePrefix: !room.isDirectChat,
withSenderNamePrefix: !room.isDirectChat ||
room.lastEvent.senderId ==
room.client.userID,
hideReply: true,
) ??
'',

View file

@ -13,12 +13,13 @@ class StateMessage extends StatelessWidget {
padding: const EdgeInsets.only(
left: 8.0,
right: 8.0,
bottom: 16.0,
bottom: 8.0,
),
child: Center(
child: Container(
alignment: Alignment.center,
padding: const EdgeInsets.all(4),
decoration: BoxDecoration(
color: Theme.of(context).backgroundColor.withOpacity(0.66),
color: Theme.of(context).backgroundColor.withOpacity(0.8),
borderRadius: BorderRadius.circular(7),
),
child: Text(
@ -30,6 +31,7 @@ class StateMessage extends StatelessWidget {
),
),
),
),
);
}
}

View file

@ -24,8 +24,11 @@ extension MatrixFileExtension on MatrixFile {
element.click();
element.remove();
} else {
var tempDir = await getTemporaryDirectory();
final file = File(tempDir.path + '/' + name.split('/').last);
final downloadsDir = Platform.isAndroid
? (await getExternalStorageDirectory())
: (await getApplicationDocumentsDirectory());
final file = File(downloadsDir.path + '/' + name.split('/').last);
file.writeAsBytesSync(bytes);
await OpenFile.open(file.path);
}

View file

@ -629,12 +629,24 @@ class _ChatState extends State<_Chat> {
client.userID
? Alignment.topRight
: Alignment.topLeft,
child: Container(
padding:
EdgeInsets.symmetric(horizontal: 4),
decoration: BoxDecoration(
color: Theme.of(context)
.scaffoldBackgroundColor
.withOpacity(0.8),
borderRadius:
BorderRadius.circular(4),
),
child: Text(
seenByText,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: Theme.of(context).primaryColor,
color:
Theme.of(context).primaryColor,
),
),
),
padding: EdgeInsets.only(

View file

@ -180,8 +180,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
resolved-ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
ref: "5019ebfeb56f0789ab4cc8d27ccda663156b5d68"
resolved-ref: "5019ebfeb56f0789ab4cc8d27ccda663156b5d68"
url: "https://gitlab.com/famedly/famedlysdk.git"
source: git
version: "0.0.1"

View file

@ -27,7 +27,7 @@ dependencies:
famedlysdk:
git:
url: https://gitlab.com/famedly/famedlysdk.git
ref: 0ff971faa99ca946acf116a51fc31ef7fe87a745
ref: 5019ebfeb56f0789ab4cc8d27ccda663156b5d68
localstorage: ^3.0.1+4
memoryfilepicker: ^0.1.3