refactor: Rename addTransport -> addOrUpdateTransport() (#3754)

The API was renamed in https://github.com/chatmail/core/pull/6800 (i.e. core v1.159.2)
This commit is contained in:
Hocuri 2025-04-30 14:03:50 +02:00 committed by GitHub
parent 5e38b25c43
commit 501a77e1dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -10,8 +10,6 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import org.thoughtcrime.securesms.qr.QrShowFragment;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@ -154,8 +152,8 @@ public class Rpc {
getResult("add_transport_from_qr", accountId, qrCode);
}
public void addTransport(int accountId, EnteredLoginParam param) throws RpcException {
getResult("add_transport", accountId, param);
public void addOrUpdateTransport(int accountId, EnteredLoginParam param) throws RpcException {
getResult("add_or_update_transport", accountId, param);
}
private static class Request {