Giter Site home page Giter Site logo

Comments (2)

LokiMidgard avatar LokiMidgard commented on September 22, 2024 1

I disabled it because I didn't want to maintain the project, I don't mind to makeing some pull requestes when I have time but maintaining a messenger, I just don't have the time :(

from signal-windows.

mediaexplorer74 avatar mediaexplorer74 commented on September 22, 2024

I try to add device linking (as master device) to this client. But I'm not sure how the API works.

I suspect that profileKey is the SignalingKey in the App.Handle.Store and that the identityKeyPair I need is the App.Handle.Store.IdentityKeyPair.

I also think I decode the uri correctly.

        public async Task AddDevice(Uri uri)
        {
            var code = await App.Handle.AccountManager.GetNewDeviceVerificationCodeAsync();

            var toAdd = DeviceProtocoll.FromUri(uri);
            // is the SignalingKey the profileKey???
            var profileKey = Base64.Decode(App.Handle.Store.SignalingKey);
            var identityKeyPair = new IdentityKeyPair(Base64.Decode(App.Handle.Store.IdentityKeyPair));

            try
            {
                // I'm not sure where which parameter goes...
                // but it failes when the QR code is to old, so the first two are propably correct...
                await App.Handle.AccountManager.AddDeviceAsync(toAdd.Uuid, toAdd.PublicKey,
                         identityKeyPair,
                        profileKey,
                         code);
            }
            catch (libsignalservice.push.exceptions.NotFoundException)
            {
                // ToDo: Handle Divice not found
            }
        }

The Android code doesn't do much more, besides enabling MultiDevice. Which I can't find anywhere...

Still nothing happens on my WindowsPhone when I scan its code. An error is also not raised (unless the QR code is to old).

You can also see the pullrequest #232

I noticed that you forked this lost (but not archived yet) Signal-Sharp project/solution too (12 month ago). But why the issues disabled (on your side)?
I think the whole solution "refresh" needed. I mean including the sub-projects (protocol, metadata, etc.) into your solution. The goal is some additional debugging...
Also you may to "pseudo-port" (automatically convert) Android's original solution from Java to C#.... After it, compare data models, api calls, etc...

from signal-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.