Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'feature/76-피드-수정-구현' of https://github.com/Team-SIGNAL/…
Browse files Browse the repository at this point in the history
…SIGNAL-ANDROID into feature/76-피드-수정-구현
  • Loading branch information
Tmdhoon2 committed Nov 16, 2023
2 parents b52a96e + 611c23f commit 534f62d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@ internal class FeedViewModel(
}
}

internal fun editPost() {
with(state.value) {
viewModelScope.launch(Dispatchers.IO) {
feedRepository.editPost(
feedId = feedId,
title = title,
image = image,
content = content,
tag = tag,
).onSuccess {

}
}
}
}

internal fun setTitle(title: String) {
setState(state.value.copy(title = title))
}
Expand Down

0 comments on commit 534f62d

Please sign in to comment.