Merge pull request #3203 from pangeachat/3172-remove-delete-option-for-dms
chore: hide delete option for DMs
This commit is contained in:
commit
c44ab460c9
2 changed files with 3 additions and 2 deletions
|
|
@ -46,6 +46,7 @@ import '../../widgets/matrix.dart';
|
|||
import 'package:fluffychat/utils/tor_stub.dart'
|
||||
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
|
||||
|
||||
|
||||
enum PopupMenuAction {
|
||||
settings,
|
||||
invite,
|
||||
|
|
@ -923,7 +924,7 @@ class ChatListController extends State<ChatList>
|
|||
),
|
||||
),
|
||||
// #Pangea
|
||||
if (room.isRoomAdmin)
|
||||
if (room.isRoomAdmin && !room.isDirectChat)
|
||||
PopupMenuItem(
|
||||
value: ChatContextAction.delete,
|
||||
child: Row(
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ class RoomDetailsButtonRowState extends State<RoomDetailsButtonRow> {
|
|||
context.go("/rooms?spaceId=clear");
|
||||
}
|
||||
},
|
||||
visible: room.isRoomAdmin,
|
||||
visible: room.isRoomAdmin && !room.isDirectChat,
|
||||
showInMainView: false,
|
||||
),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue