Skip to content

Commit

Permalink
fix(flat-pages): show share record menu only when has record (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored May 4, 2023
1 parent 472ba60 commit 58c277c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ export const MainRoomList = observer<MainRoomListProps>(function MainRoomList({
const result = [{ key: "details", text: t("room-detail") }];
if (isHistoryList) {
if (room.roomUUID) {
result.push({ key: "share", text: t("share-record") });
if (room.hasRecord) {
result.push({ key: "share", text: t("share-record") });
}
result.push({ key: "delete-history", text: t("delete-records") });
}
} else {
Expand Down

0 comments on commit 58c277c

Please sign in to comment.