chiark / gitweb /
Leave out the double-check of the account name.
authorSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 12:05:07 +0000 (12:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 12:05:07 +0000 (12:05 +0000)
Turns out it's case-insensitive, bah.

src/client.rs

index 6a68b903d5fe1adf07a45cc330cf733232a1e009..55c1e58824186a58b22083e18a363fdd4bb20047 100644 (file)
@@ -642,11 +642,6 @@ impl Client {
                     url.clone(), e.to_string())),
             }
         }?;
-        if ac.acct != name && self.fq(&ac.acct) != name {
-            return Err(ClientError::UrlError(
-                url.clone(), format!("request returned wrong account name {}",
-                                     &ac.acct)));
-        }
         self.cache_account(&ac);
         Ok(ac)
     }