mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-26 03:10:43 +01:00
fix: Update typing
This commit is contained in:
parent
6271316fcc
commit
3d70b1efbf
@ -521,21 +521,16 @@ class _ChatState extends State<_Chat> {
|
|||||||
titleSpacing: 0,
|
titleSpacing: 0,
|
||||||
title: selectedEvents.isEmpty
|
title: selectedEvents.isEmpty
|
||||||
? StreamBuilder<Object>(
|
? StreamBuilder<Object>(
|
||||||
stream: Matrix.of(context)
|
stream: room.onUpdate.stream,
|
||||||
.client
|
builder: (context, snapshot) => ListTile(
|
||||||
.onPresence
|
|
||||||
.stream
|
|
||||||
.where((p) => p.senderId == room.directChatMatrixID),
|
|
||||||
builder: (context, snapshot) {
|
|
||||||
return ListTile(
|
|
||||||
leading: Avatar(room.avatar, room.displayname),
|
leading: Avatar(room.avatar, room.displayname),
|
||||||
contentPadding: EdgeInsets.zero,
|
contentPadding: EdgeInsets.zero,
|
||||||
onTap: room.isDirectChat
|
onTap: room.isDirectChat
|
||||||
? () => showModalBottomSheet(
|
? () => showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => UserBottomSheet(
|
builder: (context) => UserBottomSheet(
|
||||||
user: room
|
user: room.getUserByMXIDSync(
|
||||||
.getUserByMXIDSync(room.directChatMatrixID),
|
room.directChatMatrixID),
|
||||||
onMention: () => sendController.text +=
|
onMention: () => sendController.text +=
|
||||||
' ${room.directChatMatrixID}',
|
' ${room.directChatMatrixID}',
|
||||||
),
|
),
|
||||||
@ -551,10 +546,17 @@ class _ChatState extends State<_Chat> {
|
|||||||
MatrixLocals(L10n.of(context))),
|
MatrixLocals(L10n.of(context))),
|
||||||
maxLines: 1),
|
maxLines: 1),
|
||||||
subtitle: typingText.isEmpty
|
subtitle: typingText.isEmpty
|
||||||
? Text(
|
? StreamBuilder<Object>(
|
||||||
|
stream: Matrix.of(context)
|
||||||
|
.client
|
||||||
|
.onPresence
|
||||||
|
.stream
|
||||||
|
.where((p) =>
|
||||||
|
p.senderId == room.directChatMatrixID),
|
||||||
|
builder: (context, snapshot) => Text(
|
||||||
room.getLocalizedStatus(context),
|
room.getLocalizedStatus(context),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
)
|
))
|
||||||
: Row(
|
: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Icon(Icons.edit_outlined,
|
Icon(Icons.edit_outlined,
|
||||||
@ -572,8 +574,7 @@ class _ChatState extends State<_Chat> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
))
|
||||||
})
|
|
||||||
: Text(L10n.of(context)
|
: Text(L10n.of(context)
|
||||||
.numberSelected(selectedEvents.length.toString())),
|
.numberSelected(selectedEvents.length.toString())),
|
||||||
actions: selectMode
|
actions: selectMode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user