From c558b9844b675e3b7fc18d2822e1f04500f7d45f Mon Sep 17 00:00:00 2001 From: x1unix Date: Thu, 19 Dec 2024 15:15:50 -0500 Subject: [PATCH] fix: SetVisible --- examples/gno.land/r/demo/boards2/post.gno | 2 +- examples/gno.land/r/demo/boards2/public.gno | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gno.land/r/demo/boards2/post.gno b/examples/gno.land/r/demo/boards2/post.gno index 27ca884c19f..012269e11d1 100644 --- a/examples/gno.land/r/demo/boards2/post.gno +++ b/examples/gno.land/r/demo/boards2/post.gno @@ -115,7 +115,7 @@ func (post *Post) FlagsCount() int { return len(post.flags) } -func (post *Post) SetVisibility(isVisible bool) { +func (post *Post) SetVisible(isVisible bool) { post.isHidden = !isVisible } diff --git a/examples/gno.land/r/demo/boards2/public.gno b/examples/gno.land/r/demo/boards2/public.gno index 442d6fad927..62edded9003 100644 --- a/examples/gno.land/r/demo/boards2/public.gno +++ b/examples/gno.land/r/demo/boards2/public.gno @@ -51,7 +51,7 @@ func FlagThread(bid BoardID, postID PostID, reason string) { } if flagItem(t, NewFlag(caller, reason)) { - t.SetVisibility(false) + t.SetVisible(false) } } @@ -101,7 +101,7 @@ func FlagReply(bid BoardID, threadID, replyID PostID, reason string) { reply := mustGetReply(thread, replyID) if flagItem(reply, NewFlag(caller, reason)) { - reply.SetVisibility(false) + reply.SetVisible(false) } }