Skip to content

Commit

Permalink
fix: SetVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix committed Dec 19, 2024
1 parent 0e56dab commit c558b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards2/post.gno
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/boards2/public.gno
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func FlagThread(bid BoardID, postID PostID, reason string) {
}

if flagItem(t, NewFlag(caller, reason)) {
t.SetVisibility(false)
t.SetVisible(false)
}
}

Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit c558b98

Please sign in to comment.