Skip to content

Commit

Permalink
fix(meetings): Cache upcoming events in deferred menu
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sein <[email protected]>
  • Loading branch information
Ivansss committed Feb 6, 2025
1 parent 4f99c1c commit 615e2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NextcloudTalk/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ import SwiftyAttributes
let buttonImage = UIImage(systemName: "calendar", withConfiguration: symbolConfiguration)
let upcomingEventsButton = BarButtonItemWithActivity(width: 50, with: buttonImage)

let deferredUpcomingEvents = UIDeferredMenuElement.uncached { [weak self] completion in
let deferredUpcomingEvents = UIDeferredMenuElement { [weak self] completion in
guard let self = self else { return }

NCAPIController.sharedInstance().upcomingEvents(self.room, forAccount: self.account) { events in
Expand Down

0 comments on commit 615e2c2

Please sign in to comment.