Skip to content

Commit

Permalink
Merge pull request #1097 from WalletConnect/w3i-fixed-refactor
Browse files Browse the repository at this point in the history
[Notify] W3i fixed
  • Loading branch information
llbartekll authored Sep 12, 2023
2 parents c57a991 + d4123c5 commit 1d8e2ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Web3Inbox/NotifyClientProxy/NotifyClientProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ final class NotifyClientProxy {
try await respond(request: request)
case .subscribe:
let params = try parse(SubscribeRequest.self, params: request.params)
try await client.subscribe(appDomain: params.appDomain, account: params.account)
// TODO: Remove after
let appDomain = params.appDomain == "notify.gm.walletconnect.com" ? "dev.gm.walletconnect.com" : params.appDomain
try await client.subscribe(appDomain: appDomain, account: params.account)
try await respond(request: request)
case .getActiveSubscriptions:
let subscriptions = client.getActiveSubscriptions()
Expand All @@ -44,6 +46,8 @@ final class NotifyClientProxy {
try await respond(request: request)
case .register:
let params = try parse(RegisterRequest.self, params: request.params)
// TODO: Remove after
let appDomain = params.domain == "notify.gm.walletconnect.com" ? "dev.gm.walletconnect.com" : params.domain
try await client.register(account: params.account, domain: params.domain, isLimited: params.isLimited, onSign: onSign)
try await respond(request: request)
}
Expand Down

0 comments on commit 1d8e2ed

Please sign in to comment.