simplify
This commit is contained in:
parent
1a69972b4c
commit
a36ac5cc81
2 changed files with 4 additions and 7 deletions
|
|
@ -1390,12 +1390,6 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
return true;
|
||||
}
|
||||
|
||||
// #Pangea
|
||||
bool get canReplySelectedEvents {
|
||||
return room.canSendDefaultMessages;
|
||||
}
|
||||
// Pangea#
|
||||
|
||||
bool get canPinSelectedEvents {
|
||||
if (isArchived ||
|
||||
!room.canChangeStateEvent(EventTypes.RoomPinnedEvents) ||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,11 @@ class OverlayHeaderState extends State<OverlayHeader> {
|
|||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
// #Pangea
|
||||
// if (controller.selectedEvents.length == 1)
|
||||
if (controller.selectedEvents.length == 1 &&
|
||||
controller.canReplySelectedEvents)
|
||||
controller.room.canSendDefaultMessages)
|
||||
// Pangea#
|
||||
IconButton(
|
||||
icon: const Icon(Symbols.reply_all),
|
||||
tooltip: l10n.reply,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue