refactor: Put forwarded text into inputfield instead of sending directly
This commit is contained in:
parent
9dea9fa50a
commit
fec39eb602
3 changed files with 17 additions and 4 deletions
|
|
@ -124,10 +124,15 @@ class ChatListItem extends StatelessWidget {
|
|||
room: room,
|
||||
),
|
||||
);
|
||||
Matrix.of(context).shareContent = null;
|
||||
} else {
|
||||
room.sendEvent(shareContent);
|
||||
final text = shareContent.tryGet<String>('body');
|
||||
Matrix.of(context).shareContent = null;
|
||||
context.go(
|
||||
'/rooms/${room.id}?body=$text',
|
||||
);
|
||||
return;
|
||||
}
|
||||
Matrix.of(context).shareContent = null;
|
||||
}
|
||||
|
||||
context.go('/rooms/${room.id}');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue