fix: Last bits for the release
This commit is contained in:
parent
165c64ce36
commit
1db9bdd975
|
@ -235,7 +235,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
: Text(
|
: Text(
|
||||||
room.lastEvent?.getLocalizedBody(
|
room.lastEvent?.getLocalizedBody(
|
||||||
L10n.of(context),
|
L10n.of(context),
|
||||||
withSenderNamePrefix: !room.isDirectChat,
|
withSenderNamePrefix: !room.isDirectChat ||
|
||||||
|
room.lastEvent.senderId ==
|
||||||
|
room.client.userID,
|
||||||
hideReply: true,
|
hideReply: true,
|
||||||
) ??
|
) ??
|
||||||
'',
|
'',
|
||||||
|
|
|
@ -13,12 +13,13 @@ class StateMessage extends StatelessWidget {
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
left: 8.0,
|
left: 8.0,
|
||||||
right: 8.0,
|
right: 8.0,
|
||||||
bottom: 16.0,
|
bottom: 8.0,
|
||||||
),
|
),
|
||||||
|
child: Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
alignment: Alignment.center,
|
padding: const EdgeInsets.all(4),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).backgroundColor.withOpacity(0.66),
|
color: Theme.of(context).backgroundColor.withOpacity(0.8),
|
||||||
borderRadius: BorderRadius.circular(7),
|
borderRadius: BorderRadius.circular(7),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -30,6 +31,7 @@ class StateMessage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,11 @@ extension MatrixFileExtension on MatrixFile {
|
||||||
element.click();
|
element.click();
|
||||||
element.remove();
|
element.remove();
|
||||||
} else {
|
} else {
|
||||||
var tempDir = await getTemporaryDirectory();
|
final downloadsDir = Platform.isAndroid
|
||||||
final file = File(tempDir.path + '/' + name.split('/').last);
|
? (await getExternalStorageDirectory())
|
||||||
|
: (await getApplicationDocumentsDirectory());
|
||||||
|
|
||||||
|
final file = File(downloadsDir.path + '/' + name.split('/').last);
|
||||||
file.writeAsBytesSync(bytes);
|
file.writeAsBytesSync(bytes);
|
||||||
await OpenFile.open(file.path);
|
await OpenFile.open(file.path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -629,12 +629,24 @@ class _ChatState extends State<_Chat> {
|
||||||
client.userID
|
client.userID
|
||||||
? Alignment.topRight
|
? Alignment.topRight
|
||||||
: Alignment.topLeft,
|
: 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(
|
child: Text(
|
||||||
seenByText,
|
seenByText,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).primaryColor,
|
color:
|
||||||
|
Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
|
|
|
@ -180,8 +180,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
|
ref: "5019ebfeb56f0789ab4cc8d27ccda663156b5d68"
|
||||||
resolved-ref: "0ff971faa99ca946acf116a51fc31ef7fe87a745"
|
resolved-ref: "5019ebfeb56f0789ab4cc8d27ccda663156b5d68"
|
||||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies:
|
||||||
famedlysdk:
|
famedlysdk:
|
||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/famedlysdk.git
|
url: https://gitlab.com/famedly/famedlysdk.git
|
||||||
ref: 0ff971faa99ca946acf116a51fc31ef7fe87a745
|
ref: 5019ebfeb56f0789ab4cc8d27ccda663156b5d68
|
||||||
|
|
||||||
localstorage: ^3.0.1+4
|
localstorage: ^3.0.1+4
|
||||||
memoryfilepicker: ^0.1.3
|
memoryfilepicker: ^0.1.3
|
||||||
|
|
Loading…
Reference in a new issue