feat: better notification
This commit is contained in:
parent
2f7c6e734e
commit
e256fb1560
8 changed files with 131 additions and 27 deletions
|
@ -139,7 +139,7 @@ class CommentItem(val comment: Comment,
|
|||
dialogBuilder("Report Comment", "Only report comments that violate the rules. Are you sure you want to report this comment?") {
|
||||
val scope = CoroutineScope(Dispatchers.Main + SupervisorJob())
|
||||
scope.launch {
|
||||
val success = CommentsAPI.reportComment(comment.commentId, comment.username, commentsFragment.mediaName)
|
||||
val success = CommentsAPI.reportComment(comment.commentId, comment.username, commentsFragment.mediaName, comment.userId)
|
||||
if (success) {
|
||||
snackString("Comment Reported")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue