Skip to content

Conversation

@lposen
Copy link
Contributor

@lposen lposen commented Jan 13, 2026

🔹 JIRA Ticket(s) if any

✏️ Description

Adds real time updates to iOS

@github-actions
Copy link

Lines Statements Branches Functions
Coverage: 62%
63.01% (397/630) 39.6% (101/255) 61.5% (139/226)

@qltysh
Copy link

qltysh bot commented Jan 13, 2026

Qlty

Coverage Impact

⬆️ Merging this pull request will increase total coverage on loren/embedded/SDK-303-make-the-embedded-functionality-for-ios-and-andrio by 0.48%.

Modified Files with Diff Coverage (1)

RatingFile% DiffUncovered Line #s
Coverage rating: A Coverage rating: A
src/core/classes/Iterable.ts100.0%
Total100.0%
🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@lposen lposen added the embedded Issues/PRs related to Embedded Messages label Jan 13, 2026
@qltysh
Copy link

qltysh bot commented Jan 13, 2026

❌ 2 blocking issues (5 total)

Tool Category Rule Count
eslint Lint 'eqeqeq' rule is disabled but never reported. 1
eslint Lint Expected '!==' and instead saw '!='. 1
qlty Structure High total complexity (count = 55) 1
qlty Structure Function with many returns (count = 10): IterableAppProvider 1
qlty Structure Function with high complexity (count = 6): initialize 1

if onEmbeddedMessageUpdatePresent || onEmbeddedMessagingDisabledPresent {
IterableAPI.embeddedManager.addUpdateListener(self)
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function with high complexity (count = 6): initialize [qlty:function-complexity]

*
* TODO: Figure out if this is purposeful
*/
// eslint-disable-next-line eqeqeq
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'eqeqeq' rule is disabled but never reported. [eslint:eslint-comments/no-unused-disable]

Suggested change
// eslint-disable-next-line eqeqeq

*/
// eslint-disable-next-line eqeqeq
onEmbeddedMessagingDisabledPresent:
this.onEmbeddedMessagingDisabled != undefined,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '!==' and instead saw '!='. [eslint:eqeqeq]

Copy link
Member

@Ayyanchira Ayyanchira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny suggestion suggested

Comment on lines 1093 to 1109
if (Iterable.savedConfig.onEmbeddedMessageUpdate) {
RNEventEmitter.addListener(
IterableEventName.handleEmbeddedMessageUpdateCalled,
() => {
Iterable.savedConfig.onEmbeddedMessageUpdate?.();
}
);
}

if (Iterable.savedConfig.onEmbeddedMessagingDisabled) {
RNEventEmitter.addListener(
IterableEventName.handleEmbeddedMessagingDisabledCalled,
() => {
Iterable.savedConfig.onEmbeddedMessagingDisabled?.();
}
);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if Iterable.savedConfig.embeddedMessagingEnabled ?

Then add both listners.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Comment on lines +416 to +430
/**
* A boolean indicating if an embedded message update callback is present.
*
* TODO: Figure out if this is purposeful
*/
// eslint-disable-next-line eqeqeq
onEmbeddedMessageUpdatePresent: this.onEmbeddedMessageUpdate != undefined,
/**
* A boolean indicating if an embedded messaging disabled callback is present.
*
* TODO: Figure out if this is purposeful
*/
// eslint-disable-next-line eqeqeq
onEmbeddedMessagingDisabledPresent:
this.onEmbeddedMessagingDisabled != undefined,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These feel unnecessary.

lposen and others added 2 commits January 13, 2026 15:10
…for-ios-and-andrio' into loren/embedded/SDK-234-ios-add-real-time-updates-and-track-message-rece
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

embedded Issues/PRs related to Embedded Messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants