fix: Last bits for the release
This commit is contained in:
parent
165c64ce36
commit
1db9bdd975
|
@ -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,
|
||||
) ??
|
||||
'',
|
||||
|
|
|
@ -13,20 +13,22 @@ class StateMessage extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(
|
||||
left: 8.0,
|
||||
right: 8.0,
|
||||
bottom: 16.0,
|
||||
bottom: 8.0,
|
||||
),
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).backgroundColor.withOpacity(0.66),
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
),
|
||||
child: Text(
|
||||
event.getLocalizedBody(L10n.of(context)),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.bodyText2.color,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).backgroundColor.withOpacity(0.8),
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
),
|
||||
child: Text(
|
||||
event.getLocalizedBody(L10n.of(context)),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.bodyText2.color,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -629,12 +629,24 @@ class _ChatState extends State<_Chat> {
|
|||
client.userID
|
||||
? Alignment.topRight
|
||||
: Alignment.topLeft,
|
||||
child: Text(
|
||||
seenByText,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
padding: EdgeInsets.only(
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue