Skip to content

Commit

Permalink
fixup! Make interface for enqueueing with multiple queue
Browse files Browse the repository at this point in the history
These changes will allow integrators fetching available
queues without the needs to configure SDK with specific
queue id.

Deprecated:
- Interface for configuration SDK with queue ID

Introduced:
- Configuration method without queue id
- Starting engagement with queue ids

MOB-2594
  • Loading branch information
yurii-glia committed Sep 7, 2023
1 parent 988b03c commit f4dba80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GliaWidgets/Public/Glia/Glia+StartEngagement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension Glia {
sceneProvider: SceneProvider? = nil
) throws {
// `interactor?.queueIds.isEmpty == false` statement is needed for integrators who uses old interface
// and pass queue identifier throught `configuration` function.
// and pass queue identifier through `configuration` function.
guard !queueIds.isEmpty || interactor?.queueIds.isEmpty == false else { throw GliaError.startEngagementWithNoQueueIds }
guard engagement == .none else { throw GliaError.engagementExists }
guard let interactor = self.interactor else { throw GliaError.sdkIsNotConfigured }
Expand All @@ -39,7 +39,7 @@ extension Glia {
}

// This check is needed for integrators who uses old interface
// and pass queue identifier throught `configuration` function,
// and pass queue identifier through `configuration` function,
// but would not pass queue ids in this method, so SDK would not override
// existed queue id.
if !queueIds.isEmpty {
Expand Down

0 comments on commit f4dba80

Please sign in to comment.