Giter Club home page Giter Club logo

polyphony's Issues

Remove code duplication in crate::auth::auth

In crate::auth::auth, we have the register_fosscord and login_fosscord methods. They do almost the exact same thing, which is send a POST request with a json body to an API route, handling any errors that may occur on the way and return an outcome. This code could very easily be put into one method, which would make it re-usable and remove code duplicates :)

Backend: Login function

The backend needs an implemented auth::fosscord_login() function, which can then be called from the frontend using a tauri command. The function should take in a backend::FosscordBackend and on success, return a String which is just the token received from the server, nothing else.

Attach serenity client to SpacebarBackend

Once registration and login (#8) have been implemented in the rust backend, we can use the token we get from these functions to create a serenity client, which should do all the heavy lifting of connecting to a websocket etc. for us. The serenity client should be added to the backend::SpacebarBackend.

List Guilds, Channels and Messages

When #9 gets completed, we can focus on getting all the users' Guilds, the channels in those guilds, and the messages in these channels. I think some additional input is needed here, as to what exactly "getting" means, where we cache these things, if we even cache these things, and how the frontend will ultimately get this information.

Synchronize encrypted messages across a users devices, securely

To offer a better user experience, it should be considered if we should add a feature which allows an initial synchronization of messages from an already existing device to another, so that all the devices of a user would have the same message history. A potential concern here would be the possible loss of Forward Secrecy if a users device is compromised.

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.