Skip to content

Commit

Permalink
Fix AutoComplete Bug in messageSession.ts (Azure#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshaNalluru authored and ramya-rao-a committed Jan 9, 2019
1 parent 7e23f68 commit 962a90d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/session/messageSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,11 @@ export class MessageSession extends LinkEntity {

// If we've made it this far, then user's message handler completed fine. Let us try
// completing the message.
if (this.autoComplete && this.receiveMode === ReceiveMode.peekLock) {
if (
this.autoComplete &&
this.receiveMode === ReceiveMode.peekLock &&
!bMessage.delivery.remote_settled
) {
try {
log.messageSession(
"[%s] Auto completing the message with id '%s' on " + "the receiver '%s'.",
Expand Down

0 comments on commit 962a90d

Please sign in to comment.