Skip to content

Commit

Permalink
chore: 进一步识别会话
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Aug 16, 2024
1 parent 9ff06a3 commit a78b60d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/onebot/action/msg/SendMsg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
}

async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> {
if (payload.message_type === 'group') this.contextMode = ContextMode.Group;
if (payload.message_type === 'private') this.contextMode = ContextMode.Private;
const peer = await createContext(this.CoreContext, payload, this.contextMode);

const messages = normalize(
Expand Down

0 comments on commit a78b60d

Please sign in to comment.