Comments (6)
+1
from spectrum2.
Do you propose a generic access to the backend database (i.e. can execute any query) or just access to existing spectrum tables?
from spectrum2.
I don't think much changes are needed in spectrum for transwhat to work without a database. If after a user logs in, something similar to a handleBuddyChangedPayload (with all the Buddy fields filled in) is sent, transwhat should be able to get rid of the MySQL database.
from spectrum2.
I still want to know what you have in mind. Will the Backend API allow plugins to create and manipulate tables or will it just allow you to query existing tables?
The problem is that just querying and modifying existing tables is not very useful. Spectrum already allows this through buddyChanged, updateBuddy and the like. If you allow the plugin to execute arbitrary SQL queries then the plugin has to worry about compatibility between the different databases. In this case the plugin might as well use the databases directly. If spectrum provides a high-level interface to the database then the type of queries the plugin can make will be limited.
So what will it be?
from spectrum2.
I've done the first part in commit ef1711d.
The backend can send following new option in backend config:
[features]
send_buddies_on_login = 1
And after that, Spectrum will send TYPE_BUDDIES protobuf message after the TYPE_LOGIN message including all the buddies from database.
from spectrum2.
Transwhat support is done in 2.0
from spectrum2.
Related Issues (20)
- libpurple backend crashes if PRPL accepts incoming file transfer without calling purple_xfer_request HOT 1
- When group chat messages are displayed as private
- Get Info does not accurately reflect the actual status of a user. HOT 1
- [purple-instagram] unable to introduce login code HOT 1
- Can Spectrum 2 be used to "bridge" two or more Legacy networks? HOT 2
- purple-gowhatsapp compatibility HOT 2
- building from source on FreeBSD: `error: redefinition of 'DummyConnectionServerFactory'` HOT 1
- Error when compiling on Arch Linux HOT 3
- Update Debian repo and packages for Debian 11 Bullseye
- how do I connect two xmpp accounts?
- Frotz backend: Documentation missing?
- Cannot access any chats in purple-matrix HOT 6
- Trying to unregister user from transport not working using GoJara (can't find any documentation to fix it)
- Twitter Backend Crashing HOT 1
- sending message from mobile not replicated (spectrum2 & Gajim) HOT 5
- Almost a year since the last binary release. Is it time for a new one?
- Build failure with log4cxx 1.0.0 HOT 7
- License incompatiblity mongoose and swiften HOT 4
- CMake Deprecation Warning at CMakeLists.txt:3 HOT 1
- Consider dropping libswiften backend HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectrum2.