maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] Matrix - clients (https://talk.maemo.org/showthread.php?t=100038)

juiceme 2020-01-27 18:09

Re: Matrix - clients
 
Yes it might be doable.
I just installed synapse and have been studying how the api works.

cy8aer 2020-01-27 18:29

Re: Matrix - clients
 
Quote:

Originally Posted by juiceme (Post 1564808)
Yes it might be doable.
I just installed synapse and have been studying how the api works.

https://matrix.org/docs/spec/

wolke 2020-01-27 19:20

Re: Matrix - clients
 
i would fukken LOVE to have a native matrix client. first person to make a client that goes 'ping' when i get a message with my phone locked gets a prize (riot does not in fact do this on SFOS)

taixzo 2020-01-27 19:36

Re: Matrix - clients
 
It looks like the matrix nio Python library does support E2E encryption; I think that would be a good start for a SFOS client given that python3/QML is well integrated into the OS.

cy8aer 2020-01-27 20:14

Re: Matrix - clients
 
Quote:

Originally Posted by taixzo (Post 1564821)
It looks like the matrix nio Python library does support E2E encryption; I think that would be a good start for a SFOS client given that python3/QML is well integrated into the OS.

Yes and it is a catastrophy to implement the stuff to nio because it is *real* complex.
  • ca. 56MB additional libraries
  • python async seems not to really cooperate with pyotherside
  • the e2e-stuff looks good but the key handling is weird
  • some stuff is not implemented which is needed for a full client in nio so it must be implemented on the nio side too.

(and that is why it takes so much time to reimplement my bluepill client from matrix-python-sdk to nio)

Halftux 2020-01-27 20:25

Re: Matrix - clients
 
Quote:

Originally Posted by taixzo (Post 1564821)
matrix nio Python library does support E2E encryption; I think that would be a good start for a SFOS client given that python3/QML is well integrated into the OS.

Another way would be to update habour-matrix it is based on QMatrixClient and this got updated to Quotient and the new library also supports E2E encryption.

https://matrix.org/blog/2019/09/20/q...t-g-so-c-2019/

https://github.com/quotient-im/libQuotient
https://github.com/quotient-im/Quaternion

taixzo 2020-01-27 21:28

Re: Matrix - clients
 
Quote:

Originally Posted by cy8aer (Post 1564822)
Yes and it is a catastrophy to implement the stuff to nio because it is *real* complex.
  • ca. 56MB additional libraries
  • python async seems not to really cooperate with pyotherside
  • the e2e-stuff looks good but the key handling is weird
  • some stuff is not implemented which is needed for a full client in nio so it must be implemented on the nio side too.

(and that is why it takes so much time to reimplement my bluepill client from matrix-python-sdk to nio)

Ah, you were the one working on the SFOS app I was thinking of. Do you have a github repo or something? I'd love to try and help out.

r0kk3rz 2020-01-27 23:39

Re: Matrix - clients
 
Quote:

Originally Posted by Halftux (Post 1564823)
Another way would be to update habour-matrix it is based on QMatrixClient and this got updated to Quotient and the new library also supports E2E encryption.

https://matrix.org/blog/2019/09/20/q...t-g-so-c-2019/

https://github.com/quotient-im/libQuotient
https://github.com/quotient-im/Quaternion

I expect there would be a ton of breaking changes if you were to try and update the library in harbour-matrix. It also looks like they now require a much newer GCC than we currently have in SFOS as well, so you might need to wait until gcc8 is released or do another hack like I did with gcc6

I got tired of constantly trying to keep up with each wave of changes, which is the main reason I stopped working in it in the first place.

If anyone wants help understanding the code base, i'm happy to help

pacman 2020-01-28 11:19

Re: Matrix - clients
 
Quote:

Originally Posted by wolke (Post 1564820)
i would fukken LOVE to have a native matrix client. first person to make a client that goes 'ping' when i get a message with my phone locked gets a prize (riot does not in fact do this on SFOS)

Bluepill does exactly that (and also lights up the LED). You should be able to find (old) discussion of the client elsewhere on this forum. I'm using version 0.1-14 (find it at https://gitlab.com/cy8aer/bluepill/p...pe=tags&page=1, download the armv7hl deployer, unzip it and install the RPM file).

This client isn't feature complete yet, so I fall back to Riot sometimes, but getting notifications on SFOS was a huge step forward. Development seems to be moving forwards, but slowly. I wish that I had the time to contribute myself.

cy8aer, if you're reading this, I really appreciate what you have done so far!

EDIT: I speed-read this thread too quickly, and missed cy8ear's post from yesterday! Sorry! :o

cy8aer 2020-01-28 17:24

Re: Matrix - clients
 
Quote:

Originally Posted by taixzo (Post 1564824)
Ah, you were the one working on the SFOS app I was thinking of. Do you have a github repo or something? I'd love to try and help out.

https://gitlab.com/cy8aer/bluepill

working on nio branch.


All times are GMT. The time now is 00:53.

vBulletin® Version 3.8.8