Skip to content

Commit

Permalink
rename FromId -> TalkerId (wechaty/puppet#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Mar 13, 2022
1 parent c21b562 commit 8f80651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/puppet-implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ function puppetImplementation (
/**
* Huan(202203):`payload.fromId` is deprecated, will be removed in v2.0
*/
response.setFromId(payload.talkerId || payload.fromId || '')
response.setTalkerId(payload.talkerId || payload.fromId || '')
response.setId(payload.id)
response.setMentionIdsList(mentionIdList)
response.setRoomId(payload.roomId || '')
Expand All @@ -710,7 +710,7 @@ function puppetImplementation (
/**
* Huan(202203):`payload.toId` is deprecated, will be removed in v2.0
*/
response.setToId(payload.listenerId || payload.toId || '')
response.setListenerId(payload.listenerId || payload.toId || '')
response.setType(payload.type as grpcPuppet.MessageTypeMap[keyof grpcPuppet.MessageTypeMap])

return callback(null, response)
Expand Down

0 comments on commit 8f80651

Please sign in to comment.