HomePhabricator
Diffusion Comm 9c52607ab18f

Pass majorDesktopVersion to platformDetails when creating macos badgeonly…

Description

Pass majorDesktopVersion to platformDetails when creating macos badgeonly notifications.

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.

Reviewers: michal, kamil

Reviewed By: michal

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10192

Details