Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Sources/SKCore/IndexTaskID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ public enum IndexTaskID: Sendable {
public var emojiRepresentation: String {
// Multiply by 2 and optionally add 1 to make sure preparation and update index store have distinct IDs.
// Run .hashValue to make sure we semi-randomly pick new emoji markers for new tasks
let numEmojis = 3
switch self {
case .preparation(id: let id):
return Self.numberToEmojis((id * 2).hashValue, numEmojis: 2)
return Self.numberToEmojis((id * 2).hashValue, numEmojis: numEmojis)
case .updateIndexStore(id: let id):
return Self.numberToEmojis((id * 2 + 1).hashValue, numEmojis: 2)
return Self.numberToEmojis((id * 2 + 1).hashValue, numEmojis: numEmojis)
}
}
}