Skip to content

Commit ac7f422

Browse files
committed
fix update_remote_tag
1 parent 939a3c3 commit ac7f422

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/dialog/dialog.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,10 @@ impl DialogInner {
469469

470470
pub fn update_remote_tag(&self, tag: &str) -> Result<()> {
471471
self.id.lock().unwrap().remote_tag = tag.to_string();
472-
let mut to = self.to.lock().unwrap();
473-
*to = to.clone().with_tag(tag.into());
472+
if self.role == TransactionRole::Client {
473+
let mut to = self.to.lock().unwrap();
474+
*to = to.clone().with_tag(tag.into());
475+
}
474476
Ok(())
475477
}
476478

0 commit comments

Comments
 (0)