Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
22071f4f
Unverified
Commit
22071f4f
authored
4 years ago
by
Nicolas Werner
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #509 from trilene/master
Bump mtxclient
parents
02e459b4
52b38abd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#796
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
io.github.NhekoReborn.Nheko.json
+1
-1
1 addition, 1 deletion
io.github.NhekoReborn.Nheko.json
src/CallManager.cpp
+7
-7
7 additions, 7 deletions
src/CallManager.cpp
with
9 additions
and
9 deletions
CMakeLists.txt
+
1
−
1
View file @
22071f4f
...
...
@@ -359,7 +359,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare
(
MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG
004d4203ceb441239aafb17e1340cd063139d029
GIT_TAG
53f8883a15649adb798b1f5e73671c84f68e3274
)
set
(
BUILD_LIB_EXAMPLES OFF CACHE INTERNAL
""
)
set
(
BUILD_LIB_TESTS OFF CACHE INTERNAL
""
)
...
...
This diff is collapsed.
Click to expand it.
io.github.NhekoReborn.Nheko.json
+
1
−
1
View file @
22071f4f
...
...
@@ -220,7 +220,7 @@
"name"
:
"mtxclient"
,
"sources"
:
[
{
"commit"
:
"
004d4203ceb441239aafb17e1340cd063139d029
"
,
"commit"
:
"
53f8883a15649adb798b1f5e73671c84f68e3274
"
,
"type"
:
"git"
,
"url"
:
"https://github.com/Nheko-Reborn/mtxclient.git"
}
...
...
This diff is collapsed.
Click to expand it.
src/CallManager.cpp
+
7
−
7
View file @
22071f4f
...
...
@@ -64,8 +64,8 @@ CallManager::CallManager(QObject *parent)
this
,
[
this
](
const
std
::
string
&
sdp
,
const
std
::
vector
<
CallCandidates
::
Candidate
>
&
candidates
)
{
nhlog
::
ui
()
->
debug
(
"WebRTC: call id: {} - sending offer"
,
callid_
);
emit
newMessage
(
roomid_
,
CallInvite
{
callid_
,
sdp
,
0
,
timeoutms_
});
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
candidates
,
0
});
emit
newMessage
(
roomid_
,
CallInvite
{
callid_
,
sdp
,
"0"
,
timeoutms_
});
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
candidates
,
"0"
});
std
::
string
callid
(
callid_
);
QTimer
::
singleShot
(
timeoutms_
,
this
,
[
this
,
callid
]()
{
if
(
session_
.
state
()
==
webrtc
::
State
::
OFFERSENT
&&
callid
==
callid_
)
{
...
...
@@ -82,8 +82,8 @@ CallManager::CallManager(QObject *parent)
this
,
[
this
](
const
std
::
string
&
sdp
,
const
std
::
vector
<
CallCandidates
::
Candidate
>
&
candidates
)
{
nhlog
::
ui
()
->
debug
(
"WebRTC: call id: {} - sending answer"
,
callid_
);
emit
newMessage
(
roomid_
,
CallAnswer
{
callid_
,
sdp
,
0
});
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
candidates
,
0
});
emit
newMessage
(
roomid_
,
CallAnswer
{
callid_
,
sdp
,
"0"
});
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
candidates
,
"0"
});
});
connect
(
&
session_
,
...
...
@@ -91,7 +91,7 @@ CallManager::CallManager(QObject *parent)
this
,
[
this
](
const
CallCandidates
::
Candidate
&
candidate
)
{
nhlog
::
ui
()
->
debug
(
"WebRTC: call id: {} - sending ice candidate"
,
callid_
);
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
{
candidate
},
0
});
emit
newMessage
(
roomid_
,
CallCandidates
{
callid_
,
{
candidate
},
"0"
});
});
connect
(
&
turnServerTimer_
,
&
QTimer
::
timeout
,
this
,
&
CallManager
::
retrieveTurnServer
);
...
...
@@ -238,7 +238,7 @@ CallManager::hangUp(CallHangUp::Reason reason)
if
(
!
callid_
.
empty
())
{
nhlog
::
ui
()
->
debug
(
"WebRTC: call id: {} - hanging up ({})"
,
callid_
,
callHangUpReasonString
(
reason
));
emit
newMessage
(
roomid_
,
CallHangUp
{
callid_
,
0
,
reason
});
emit
newMessage
(
roomid_
,
CallHangUp
{
callid_
,
"0"
,
reason
});
endCall
();
}
}
...
...
@@ -291,7 +291,7 @@ CallManager::handleEvent(const RoomEvent<CallInvite> &callInviteEvent)
if
(
isOnCall
()
||
roomInfo
.
member_count
!=
2
)
{
emit
newMessage
(
QString
::
fromStdString
(
callInviteEvent
.
room_id
),
CallHangUp
{
callInviteEvent
.
content
.
call_id
,
0
,
"0"
,
CallHangUp
::
Reason
::
InviteTimeOut
});
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment