fix: send msg with mentions
This commit is contained in:
@@ -175,9 +175,7 @@ export const channelApi = createApi({
|
||||
query: ({ id, content, type = "text", properties = {} }) => ({
|
||||
headers: {
|
||||
"content-type": ContentTypes[type],
|
||||
"X-Properties": properties
|
||||
? btoa(unescape(encodeURIComponent(JSON.stringify(properties))))
|
||||
: ""
|
||||
"X-Properties": properties ? btoa(JSON.stringify(properties)) : ""
|
||||
},
|
||||
url: `/group/${id}/send`,
|
||||
method: "POST",
|
||||
|
||||
@@ -223,9 +223,7 @@ export const messageApi = createApi({
|
||||
query: ({ reply_mid, content, type = "text", properties }) => ({
|
||||
headers: {
|
||||
"content-type": ContentTypes[type],
|
||||
"X-Properties": properties
|
||||
? btoa(unescape(encodeURIComponent(JSON.stringify(properties))))
|
||||
: ""
|
||||
"X-Properties": properties ? btoa(JSON.stringify(properties)) : ""
|
||||
},
|
||||
url: `/message/${reply_mid}/reply`,
|
||||
method: "POST",
|
||||
|
||||
@@ -230,9 +230,7 @@ export const userApi = createApi({
|
||||
query: ({ id, content, type = "text", properties = "" }) => ({
|
||||
headers: {
|
||||
"content-type": ContentTypes[type],
|
||||
"X-Properties": properties
|
||||
? btoa(unescape(encodeURIComponent(JSON.stringify(properties))))
|
||||
: ""
|
||||
"X-Properties": properties ? btoa(JSON.stringify(properties)) : ""
|
||||
},
|
||||
url: `/user/${id}/send`,
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user