|
|
|
@ -39,9 +39,11 @@ class StatusListTile extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
subtitle: Text(status.dateTime.localizedTime(context),
|
|
|
|
|
style: TextStyle(fontSize: 14)),
|
|
|
|
|
trailing: PopupMenuButton(
|
|
|
|
|
onSelected: (_) => AdaptivePageLayout.of(context).pushNamed(
|
|
|
|
|
'/settings/ignore',
|
|
|
|
|
trailing: Matrix.of(context).client.userID == status.senderId
|
|
|
|
|
? null
|
|
|
|
|
: PopupMenuButton(
|
|
|
|
|
onSelected: (_) => AdaptivePageLayout.of(context)
|
|
|
|
|
.pushNamed('/settings/ignore',
|
|
|
|
|
arguments: status.senderId),
|
|
|
|
|
itemBuilder: (_) => [
|
|
|
|
|
PopupMenuItem(
|
|
|
|
@ -85,13 +87,17 @@ class StatusListTile extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(CupertinoIcons.chat_bubble),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
onPressed:
|
|
|
|
|
Matrix.of(context).client.userID == status.senderId
|
|
|
|
|
? null
|
|
|
|
|
: () async {
|
|
|
|
|
final result = await showFutureLoadingDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
future: () => User(
|
|
|
|
|
status.senderId,
|
|
|
|
|
room:
|
|
|
|
|
Room(id: '', client: Matrix.of(context).client),
|
|
|
|
|
room: Room(
|
|
|
|
|
id: '',
|
|
|
|
|
client: Matrix.of(context).client),
|
|
|
|
|
).startDirectChat(),
|
|
|
|
|
);
|
|
|
|
|
if (result.error == null) {
|
|
|
|
|