Skip to content

Commit

Permalink
feat: chat approval json format updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MdTeach committed Oct 19, 2023
1 parent fe732ab commit c560b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Chat/Send.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ extension PushChat {
let apiData = AcceptHashData(
fromDID: approveOptions.fromDID,
toDID: approveOptions.toDID, status: "Approved")

let jsonString = try JSONEncoder().encode(apiData).toString()
let jsonString = "{\"fromDID\":\"\(apiData.fromDID)\",\"toDID\":\"\(apiData.toDID)\",\"status\":\"\(apiData.status)\"}"
let hash = generateSHA256Hash(
msg: jsonString
)
Expand Down

0 comments on commit c560b33

Please sign in to comment.