Skip to content

Commit

Permalink
Merge pull request #1144 from wakmusic/1130-fix-storage-playlist-play
Browse files Browse the repository at this point in the history
๐Ÿ”€ :: (#1130) ๋ณด๊ด€ํ•จ ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ๋ฅผ ์žฌ์ƒํ–ˆ์„ ๋•Œ ์ฒซ ๊ณก๋งŒ ์žฌ์ƒ๋˜๋˜ ๋ฌธ์ œ ์ˆ˜์ •
  • Loading branch information
youn9k authored Aug 15, 2024
2 parents b0ca385 + 1f6e90a commit 0bb1892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ extension ListStorageReactor {
.asObservable()
.do(onNext: { [weak self] appendingPlaylistItems in
PlayState.shared.appendSongsToPlaylist(appendingPlaylistItems)
let firstItem = appendingPlaylistItems.first!
WakmusicYoutubePlayer(id: firstItem.id).play()
let ids = appendingPlaylistItems.map { $0.id }
WakmusicYoutubePlayer(ids: ids).play()
self?.storageCommonService.isEditingState.onNext(false)
})
.flatMap { songs -> Observable<Mutation> in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ final class ListStorageViewController: BaseReactorViewController<ListStorageReac

reactor.pulse(\.$showDrawFruitPopup)
.compactMap { $0 }
.bind(with: self, onNext: { owner, message in
.bind(with: self, onNext: { owner, _ in
let vc = owner.fruitDrawFactory.makeView(delegate: owner)
vc.modalPresentationStyle = .fullScreen
owner.present(vc, animated: true)
Expand Down

0 comments on commit 0bb1892

Please sign in to comment.