Replies: 1 comment 4 replies
-
TL;DR: Don't do it, you will break important functionality for your users. You definitely do not need to resort to receiving messages without the LXMF router. That's likely to break in all kinds of ways, unless you actually implement the full functionality of the LXMF router. Without the LXMF Router instance, there's lots of functionality that will not work, including essential stuff such as key ratchets, signature and stamp validation, duplicate detection, and others. That will have a negative result on security and privacy. Don't do it. You have been warned. In the end, I'm pretty sure it will be much easier for you to simply use the LXMF router the way it was intended. If there's some issue with your application structure, that prevents running LXMF as intended, it's better to fix that. To have multiple active delivery destinations, you can just instantiate multiple LXMRouter instances. Any kind of app framework should be perfectly capable of running LXMF, most likely you just need to launch things in the way the app framework is designed for, and then communicating whatever you need to your UI thread through whatever means the framework makes available. |
Beta Was this translation helpful? Give feedback.
-
I do have context of why I needed to do that in the first place, but since it was quite painful to me to discover what I should do from the code examples (I spend an awful amount of time searching where the LXMRouter registers a request handle... spoiler alert, it doesnt), but in the end I managed;
It pleases me how readable the RNS API is
anyhow, what I ended up doing:
Anyhow, since I want my app to be able to handle multiple identities, and the GUI part of it is not on the main thread, I am unable to start an LXMRouter on demand because of the usage of the signal library (and I also cant start it beforehand as I am doing with the RNS instance and swap the identity later, so for now I am stuck handling the LXM manually);
Thankfully I am getting around it, and thought that this is probably a nice finding for future devs wanting to fiddle with RNS
Beta Was this translation helpful? Give feedback.
All reactions