Skip to content

Commit

Permalink
Re-enable limit (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Dec 13, 2024
1 parent 6aed757 commit 087a89e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DcWebxdcWidget/DcWebxdcWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ struct Provider: TimelineProvider {
}

let dcContext = dcAccounts.getSelected()
let chatId = 0
let ignore = Int32(0)

let limit: Int
switch context.family {
Expand All @@ -62,7 +60,7 @@ struct Provider: TimelineProvider {
default: limit = 8
}

let entries = dcContext.shownWidgets()
let entries = dcContext.shownWidgets().prefix(limit)
let apps = entries.compactMap { entry in
let msg = dcContext.getMessage(id: entry.messageId)
let name = msg.getWebxdcAppName()
Expand Down

0 comments on commit 087a89e

Please sign in to comment.