Skip to content

Commit

Permalink
fix: Fixed sent status that was not show up after refresh (fix #1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed May 1, 2023
1 parent cb7a32d commit dadb00d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/status/functions/sendRawStatus.ts
Expand Up @@ -51,6 +51,7 @@ export async function sendRawStatus(
};

message.ctwaContext = message.ctwaContext || {};
message.author = UserPrefs.getMaybeMeUser();

const result = await Chat.sendRawMessage('status@broadcast', message, {
...options,
Expand Down Expand Up @@ -122,6 +123,10 @@ webpack.onInjected(() => {
c = t ? { type: msg.type } : msg.avParams();
}

if (!msg.author) {
msg.author = UserPrefs.getMaybeMeUser();
}

const proto = createMsgProtobuf(msg, c || {});

return await encryptAndSendGroupMsg(msg, proto);
Expand Down

0 comments on commit dadb00d

Please sign in to comment.