Page MenuHomePhabricator

Pass majorDesktopVersion to platformDetails when creating macos badgeonly notifications.
ClosedPublic

Authored by marcin on Dec 5 2023, 4:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 5, 10:42 PM
Unknown Object (File)
Fri, Jul 5, 2:38 PM
Unknown Object (File)
Fri, Jul 5, 3:07 AM
Unknown Object (File)
Thu, Jul 4, 12:42 PM
Unknown Object (File)
Tue, Jul 2, 2:50 PM
Unknown Object (File)
Tue, Jul 2, 6:06 AM
Unknown Object (File)
Tue, Jul 2, 5:49 AM
Unknown Object (File)
Tue, Jul 2, 4:12 AM
Subscribers

Details

Summary

This differential fixes https://linear.app/comm/issue/ENG-6014/macos-badge-only-notifications-are-not-encrypted. The majorDesktopVersion is extracted from
versions object and passed to platformDetails when creating badgeOnly notifications.

Test Plan
  1. Build macOS app without applying this differential.
  2. Ensure that sending badge only notifications does not increment version field in relevant row in olm_sessions table.
  3. Apply this diff and build macOS app again.
  4. Ensure that sending badge only notifications does increment version field in relevant row in olm_sessions table.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin requested review of this revision.Dec 5 2023, 4:50 AM
This revision is now accepted and ready to land.Dec 5 2023, 5:46 AM

Enhance variable naming in conditions that determine whether notification should be encrypted.