[mob] Include mobile flag during ott (#6906)

## Description
Need this to identify which OTT template to send from backend.
Ref: https://github.com/ente-io/ente/pull/5654
## Tests
This commit is contained in:
Neeraj
2025-08-20 14:25:22 +05:30
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import 'dart:async';
import "dart:convert";
import "dart:io";
import "dart:math";
import 'package:bip39/bip39.dart' as bip39;
@@ -102,6 +103,7 @@ class UserService {
data: {
"email": email,
"purpose": isChangeEmail ? "change" : purpose ?? "",
"mobile": Platform.isIOS || Platform.isAndroid,
},
);
await dialog.hide();

View File

@@ -1,5 +1,6 @@
import 'dart:async';
import "dart:convert";
import "dart:io";
import "dart:math";
import 'package:bip39/bip39.dart' as bip39;
@@ -88,6 +89,7 @@ class UserService {
data: {
"email": email,
"purpose": isChangeEmail ? "change" : purpose ?? "",
"mobile": Platform.isIOS || Platform.isAndroid,
},
);
await dialog.hide();