Skip to content

Commit

Permalink
chore(build marion test)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemPerrousset committed Mar 20, 2023
1 parent a192a62 commit 12517d1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions entourage/Scenes/Events/EventDetailFeedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ class EventDetailFeedViewController: UIViewController {
}

func getMorePosts() {
//TODO: a tester
self.isLoading = true
EventService.getEventPostsPaging(id: eventId, currentPage: currentPagingPage, per: itemsPerPage) { post, error in
if let post = post {
Expand All @@ -260,15 +259,13 @@ class EventDetailFeedViewController: UIViewController {
}
self.isLoading = false
}
//TODO: Error ?
}
}

func splitMessages() {
guard let messages = event?.posts else {
return
}

messagesNew.removeAll()
messagesOld.removeAll()

Expand All @@ -280,8 +277,7 @@ class EventDetailFeedViewController: UIViewController {
messagesNew.append(post)
}
}
print("eho " , messagesOld.count)
print("eho " , messagesNew.count)

hasNewAndOldSections = messagesOld.count > 0 && messagesNew.count > 0
}

Expand Down Expand Up @@ -715,7 +711,6 @@ extension EventDetailFeedViewController:NeighborhoodPostCellDelegate {
}

func signalPost(postId: Int, userId:Int) {
print("eho 4")
if let navvc = UIStoryboard.init(name: StoryboardName.neighborhoodReport, bundle: nil).instantiateViewController(withIdentifier: "reportNavVC") as? UINavigationController, let vc = navvc.topViewController as? ReportGroupMainViewController {
vc.eventId = eventId
vc.postId = postId
Expand Down Expand Up @@ -762,7 +757,6 @@ extension EventDetailFeedViewController:NeighborhoodPostCellDelegate {
extension EventDetailFeedViewController:UpdateCommentCountDelegate {
func updateCommentCount(parentCommentId: Int, nbComments: Int, currentIndexPathSelected:IndexPath?) {
guard let _ = event?.posts else {return}

var i = 0
for _post in event!.posts! {
if _post.uid == parentCommentId {
Expand Down

0 comments on commit 12517d1

Please sign in to comment.