Skip to content

Commit

Permalink
Add revenuecat_user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei200287 committed Jan 14, 2025
1 parent dcc0e7e commit 0c04a23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/Chat2App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public class Chat2App {
public var operatorName: String = "Operator"
public var firstMessageText: String = ""
public var language: Language = .en
public var revenuecat_user_id: String = ""

public var apnsToken: Data? {
didSet {
Expand Down
7 changes: 5 additions & 2 deletions Sources/Network/Endpoints/Chat2AppEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ extension Chat2AppEndpoint: Endpoint {
let locale = Chat2App.shared.locale
let languageCode = Chat2App.shared.language.code
let pushToken = Chat2App.shared.apnsTokenString ?? ""
let revenuecat_user_id = Chat2App.shared.revenuecat_user_id
switch self {
case .sendImage:
return [
Expand All @@ -93,7 +94,8 @@ extension Chat2AppEndpoint: Endpoint {
"chatUserName": chatUserName,
"chatLocale": locale,
"languageCode": languageCode,
"chatUserId": chatUserId
"chatUserId": chatUserId,
"revenuecat_user_id": revenuecat_user_id
]
default:
return [
Expand All @@ -105,7 +107,8 @@ extension Chat2AppEndpoint: Endpoint {
"chatUserName": chatUserName,
"chatLocale": locale,
"languageCode": languageCode,
"chatUserId": chatUserId
"chatUserId": chatUserId,
"revenuecat_user_id": revenuecat_user_id
]
}
}
Expand Down

0 comments on commit 0c04a23

Please sign in to comment.