Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
elixxir
client
Commits
9cca213a
Commit
9cca213a
authored
3 years ago
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
improved notifications documentation
parent
62052a35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!117
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/notifications.go
+9
-0
9 additions, 0 deletions
bindings/notifications.go
with
9 additions
and
0 deletions
bindings/notifications.go
+
9
−
0
View file @
9cca213a
...
...
@@ -34,6 +34,15 @@ func (nfmr *NotificationForMeReport) Source() []byte {
}
// NotificationForMe Check if a notification received is for me
// It returns a NotificationForMeReport which contains a ForMe bool stating if it is for the caller,
// a Type, and a source. These are as follows:
// TYPE DESCRIPTION SOURCE
// "default" A message with no association recipient user ID
// "request" A channel request has been received recipient user ID
// "confirm" A channel request has been accepted sender user ID
// "rekey" keys with a user have been rotated sender user ID
// "e2e" reception of an E2E message sender user ID
// "group" eception of a group chat message group ID
func
NotificationForMe
(
messageHash
,
idFP
string
,
preimages
string
)
(
*
NotificationForMeReport
,
error
)
{
//handle message hash and idFP
messageHashBytes
,
err
:=
base64
.
StdEncoding
.
DecodeString
(
messageHash
)
...
...
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