Skip to content

Commit

Permalink
Rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmustautsglia committed Nov 1, 2023
1 parent 26bc682 commit 0a74ef2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
19 changes: 6 additions & 13 deletions GliaWidgets/Public/Glia/Glia+StartEngagement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,8 @@ extension Glia {
queueIds: queueIds
)

theme.chat.connect.queue.firstText = companyName(
using: configuration,
themeCompanyName: theme.chat.connect.queue.firstText
)

theme.call.connect.queue.firstText = companyName(
using: configuration,
themeCompanyName: theme.call.connect.queue.firstText
)
// Apply company name to theme and get the modified theme
let modifiedTheme = applyCompanyName(using: configuration, theme: theme)

let viewFactory = ViewFactory(
with: modifiedTheme,
Expand Down Expand Up @@ -105,20 +98,20 @@ extension Glia {
}
}

private func applyCompanyName(using interactor: Interactor, theme: Theme) -> Theme {
private func applyCompanyName(using configuration: Configuration, theme: Theme) -> Theme {
theme.chat.connect.queue.firstText = companyName(
using: interactor,
using: configuration,
themeCompanyName: theme.chat.connect.queue.firstText
)

theme.call.connect.queue.firstText = companyName(
using: interactor,
using: configuration,
themeCompanyName: theme.call.connect.queue.firstText
)

// Live Observation Confirmation Alert Message
let companyName = companyName(
using: interactor,
using: configuration,
themeCompanyName: theme.alertConfiguration.liveObservationConfirmation.message
)
var liveObservationConfirmationMessage = Localization.LiveObservation.Confirm.message.withCompanyName(companyName)
Expand Down
3 changes: 2 additions & 1 deletion GliaWidgets/Sources/CallVisualizer/CallVisualizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public final class CallVisualizer {
}
},
orientationManager: environment.orientationManager,
proximityManager: environment.proximityManager
proximityManager: environment.proximityManager,
interactorProviding: environment.interactorProviding()
)
)
}()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ extension CallVisualizer.Coordinator {
var eventHandler: (DelegateEvent) -> Void
var orientationManager: OrientationManager
var proximityManager: ProximityManager
var interactorProviding: Interactor?
}
}

0 comments on commit 0a74ef2

Please sign in to comment.