Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
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
Olm
Commits
bb70307b
Commit
bb70307b
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Fix javascript bindings: matches_inbound doesn't take an account argument
parent
f0bb8e03
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
javascript/olm_post.js
+4
-4
4 additions, 4 deletions
javascript/olm_post.js
with
4 additions
and
4 deletions
javascript/olm_post.js
+
4
−
4
View file @
bb70307b
...
...
@@ -252,24 +252,24 @@ Session.prototype['session_id'] = restore_stack(function() {
});
Session
.
prototype
[
'
matches_inbound
'
]
=
restore_stack
(
function
(
account
,
one_time_key_message
one_time_key_message
)
{
var
message_array
=
array_from_string
(
one_time_key_message
);
var
message_buffer
=
stack
(
message_array
);
return
session_method
(
Module
[
'
_olm_matches_inbound_session
'
])(
this
.
ptr
,
account
.
ptr
,
message_buffer
,
message_array
.
length
this
.
ptr
,
message_buffer
,
message_array
.
length
)
?
true
:
false
;
});
Session
.
prototype
[
'
matches_inbound_from
'
]
=
restore_stack
(
function
(
account
,
identity_key
,
one_time_key_message
identity_key
,
one_time_key_message
)
{
var
identity_key_array
=
array_from_string
(
identity_key
);
var
identity_key_buffer
=
stack
(
identity_key_array
);
var
message_array
=
array_from_string
(
one_time_key_message
);
var
message_buffer
=
stack
(
message_array
);
return
session_method
(
Module
[
'
_olm_matches_inbound_session_from
'
])(
this
.
ptr
,
account
.
ptr
,
this
.
ptr
,
identity_key_buffer
,
identity_key_array
.
length
,
message_buffer
,
message_array
.
length
)
?
true
:
false
;
...
...
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