mirror of
https://github.com/dergigi/boris.git
synced 2025-12-20 16:14:20 +01:00
refactor: remove redundant isLocalOnly flag
- Remove isLocalOnly field from Highlight type and creation logic - Use only isOfflineCreated flag for flight mode highlights - Simplify UI logic to check only isOfflineCreated - Both flags were set to the same value, making them redundant - Cleaner, more maintainable code with single source of truth
This commit is contained in:
@@ -135,7 +135,6 @@ export async function createHighlight(
|
||||
// Convert to Highlight with relay tracking info and return IMMEDIATELY
|
||||
const highlight = eventToHighlight(signedEvent)
|
||||
highlight.publishedRelays = expectedSuccessRelays
|
||||
highlight.isLocalOnly = isLocalOnly
|
||||
highlight.isOfflineCreated = isLocalOnly
|
||||
|
||||
return highlight
|
||||
|
||||
Reference in New Issue
Block a user