Skip to content

[APRIL SPRINT] TW-2893 Add multi account noti#2909

Open
tddang-linagora wants to merge 4 commits intosprint/march26from
TW-2893/Multiple-accounts-notification
Open

[APRIL SPRINT] TW-2893 Add multi account noti#2909
tddang-linagora wants to merge 4 commits intosprint/march26from
TW-2893/Multiple-accounts-notification

Conversation

@tddang-linagora
Copy link
Collaborator

@coderabbitai
Copy link

coderabbitai bot commented Mar 12, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0dcee5c8-37f8-459c-aba4-c56c265ec66e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch TW-2893/Multiple-accounts-notification

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

This PR has been deployed to https://linagora.github.io/twake-on-matrix/2909

@hoangdat hoangdat changed the title TW-2893 Add multi account noti [APRIL SPRINT] TW-2893 Add multi account noti Mar 13, 2026
@@ -108,58 +109,201 @@ class BackgroundPush {
if (call.method == 'willPresent') {
onReceiveNotification(call.arguments);
} else if (call.method == 'didReceive') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should maybe create a enum for this

@@ -108,58 +109,201 @@ class BackgroundPush {
if (call.method == 'willPresent') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should maybe create a enum for this

currentPushers.first.appId == appId &&
currentPushers.first.appDisplayName == clientName &&
currentPushers.first.deviceDisplayName == targetClient.deviceName &&
currentPushers.first.lang == 'en' &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why '== en' ?

appId: appId,
appDisplayName: clientName,
deviceDisplayName: targetClient.deviceName!,
lang: 'en',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same question

}

void iOSUserSelectedNoti(dynamic noti) {
Future<void> iOSUserSelectedNoti(dynamic noti) async {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noti should deserve a model class with @JsonAnnotation

@@ -418,11 +599,19 @@ class BackgroundPush {
Future<void> onSelectNotification(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

@tddang-linagora tddang-linagora force-pushed the TW-2893/ios-notification-option-2 branch from f52a704 to 4495678 Compare March 16, 2026 02:49
Base automatically changed from TW-2893/ios-notification-option-2 to sprint/march26 March 16, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants