Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobalt 0.0.8: Here the nickname change was successful, but it still shows the old nickname on WhatsApp #552

Open
gopering opened this issue Feb 28, 2025 · 3 comments
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed

Comments

@gopering
Copy link

Here is my code

` public void updateProfile1(UpdateMsg updateMsg) {

    System.out.println(whatsapp.store().name());

    var updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB).toPersonal();
    System.out.println(updateRes);

    whatsapp.changeName(updateMsg.getNewNickname()).thenRun(() -> {
        System.out.println("update success!");

    });
    ///updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB);
    System.out.println("updateRes:" + updateRes);



    whatsapp.sendMessage(whatsapp.store().jid().get(), "Profile updated").join();
    System.out.println("Sent a message to trigger profile update on client.");

}`
@Auties00
Copy link
Owner

Auties00 commented Feb 28, 2025

Here is my code

` public void updateProfile1(UpdateMsg updateMsg) {

    System.out.println(whatsapp.store().name());

    var updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB).toPersonal();
    System.out.println(updateRes);

    whatsapp.changeName(updateMsg.getNewNickname()).thenRun(() -> {
        System.out.println("update success!");

    });
    ///updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB);
    System.out.println("updateRes:" + updateRes);



    whatsapp.sendMessage(whatsapp.store().jid().get(), "Profile updated").join();
    System.out.println("Sent a message to trigger profile update on client.");

}`

This code is wrong, remove the second line

@Auties00 Auties00 added the waiting triage A maintainer acknowledged the issue, further discussion is needed label Feb 28, 2025
@gopering
Copy link
Author

gopering commented Mar 1, 2025

Here is my code
` public void updateProfile1(UpdateMsg updateMsg) {

    System.out.println(whatsapp.store().name());

    var updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB).toPersonal();
    System.out.println(updateRes);

    whatsapp.changeName(updateMsg.getNewNickname()).thenRun(() -> {
        System.out.println("update success!");

    });
    ///updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB);
    System.out.println("updateRes:" + updateRes);



    whatsapp.sendMessage(whatsapp.store().jid().get(), "Profile updated").join();
    System.out.println("Sent a message to trigger profile update on client.");

}`

This code is wrong, remove the second line

Removed the second line of code, but I re-tried it, sent a change request, and the nickname for the current session updated, but the nickname on WhatsApp on my Apple phone didn't.

@Auties00
Copy link
Owner

Auties00 commented Mar 2, 2025

Here is my code
` public void updateProfile1(UpdateMsg updateMsg) {

    System.out.println(whatsapp.store().name());

    var updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB).toPersonal();
    System.out.println(updateRes);

    whatsapp.changeName(updateMsg.getNewNickname()).thenRun(() -> {
        System.out.println("update success!");

    });
    ///updateRes = whatsapp.store().setName(updateMsg.getNewNickname()).device().withPlatform(UserAgent.PlatformType.WEB);
    System.out.println("updateRes:" + updateRes);



    whatsapp.sendMessage(whatsapp.store().jid().get(), "Profile updated").join();
    System.out.println("Sent a message to trigger profile update on client.");

}`

This code is wrong, remove the second line

Removed the second line of code, but I re-tried it, sent a change request, and the nickname for the current session updated, but the nickname on WhatsApp on my Apple phone didn't.

Are you using WhatsApp business or personal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants