Nheko-Reborn / mtxclient

Client API library for Matrix, built on top of libcurl
MIT License
40 stars 25 forks source link

Improved VoIP Signalling #78

Closed r0hit05 closed 2 years ago

r0hit05 commented 2 years ago

Improved Signalling for 1:1 VoIP

MSC2746

To-Do

deepbluev7 commented 2 years ago

One thing I don't see on your todo list yet, is adding some tests. We usually add at least a few tests to test if the events parse properly :3

(I guess you did already add one in the time I got to writing this message...)

r0hit05 commented 2 years ago

One thing I don't see on your todo list yet, is adding some tests. We usually add at least a few tests to test if the events parse properly :3

(I guess you did already add one in the time I got to writing this message...)

I have added some of the trivial tests. I was thinking of making a separate voip.cpp file to test further features instead of doing them under messages.cpp?

r0hit05 commented 2 years ago

Also, the To-Do list is incomplete. I would add more as and when I find out more things to do. Let me know if there are other things I need to add.

deepbluev7 commented 2 years ago

I have added some of the trivial tests. I was thinking of making a separate voip to test further features instead of doing them under messages?

Sure, sounds good to me!

Also, the To-Do list is incomplete. I would add more as and when I find out more things to do. Let me know if there are other things I need to add.

I think updating all the call event types first is good enough for this PR. Then we should update Nheko to compile with the changed namespaces and merge both. Then after that we can work on implementing the signaling?

r0hit05 commented 2 years ago

I have added some of the trivial tests. I was thinking of making a separate voip to test further features instead of doing them under messages?

Sure, sounds good to me!

Also, the To-Do list is incomplete. I would add more as and when I find out more things to do. Let me know if there are other things I need to add.

I think updating all the call event types first is good enough for this PR. Then we should update Nheko to compile with the changed namespaces and merge both. Then after that we can work on implementing the signaling?

Ok, that works for me.

r0hit05 commented 2 years ago

I have added some of the trivial tests. I was thinking of making a separate voip to test further features instead of doing them under messages?

Sure, sounds good to me!

Also, the To-Do list is incomplete. I would add more as and when I find out more things to do. Let me know if there are other things I need to add.

I think updating all the call event types first is good enough for this PR. Then we should update Nheko to compile with the changed namespaces and merge both. Then after that we can work on implementing the signaling?

Since the structures are changed, I am not sure how I should do it. I can give default values to the newly added variables and leave them be till they have been implemented?

deepbluev7 commented 2 years ago

Since the structures are changed, I am not sure how I should do it. I can give default values to the newly added variables and leave them be till they have been implemented?

We should only be reading and writing the unchanged values anyway, so the json we send should be the same, I think. So using the default values (or rather not using them) should be fine imo?

deepbluev7 commented 2 years ago

Thank you, looks good to me!