File tree Expand file tree Collapse file tree 1 file changed +5
-50
lines changed Expand file tree Collapse file tree 1 file changed +5
-50
lines changed Original file line number Diff line number Diff line change 2
2
* Unmute message notification
3
3
* @param {Object } spark
4
4
* @param {String } convo
5
- * @returns {Object }
6
5
*/
7
6
export function unmuteMessageNotification ( spark , convo ) {
8
- let activity ;
9
-
10
7
browser . call ( ( ) => spark . internal . conversation . unmuteMessages ( convo )
11
- . then ( ( a ) => {
12
- activity = a ;
13
-
14
- return activity ;
15
- } ) . catch ( ( e ) => {
8
+ . catch ( ( e ) => {
16
9
console . error ( 'Unable to unmute message notification' ) ;
17
10
console . error ( e ) ;
18
11
throw ( e ) ;
19
12
} ) ) ;
20
-
21
- return activity ;
22
13
}
23
14
24
15
/**
25
16
* Mute message notification
26
17
* @param {Object } spark
27
18
* @param {String } convo
28
- * @returns {Object }
29
19
*/
30
20
export function muteMessageNotification ( spark , convo ) {
31
- let activity ;
32
-
33
21
browser . call ( ( ) => spark . internal . conversation . muteMessages ( convo )
34
- . then ( ( a ) => {
35
- activity = a ;
36
-
37
- return activity ;
38
- } ) . catch ( ( e ) => {
22
+ . catch ( ( e ) => {
39
23
console . error ( 'Unable to mute message notification' ) ;
40
24
console . error ( e ) ;
41
25
throw ( e ) ;
42
26
} ) ) ;
43
-
44
- return activity ;
45
27
}
46
28
47
29
/**
48
30
* Unmute mentions notification
49
31
* @param {Object } spark
50
32
* @param {String } convo
51
- * @returns {Object }
52
33
*/
53
34
export function unmuteMentionsNotification ( spark , convo ) {
54
- let activity ;
55
-
56
35
browser . call ( ( ) => spark . internal . conversation . unmuteMentions ( convo )
57
- . then ( ( a ) => {
58
- activity = a ;
59
-
60
- return activity ;
61
- } ) . catch ( ( e ) => {
36
+ . catch ( ( e ) => {
62
37
console . error ( 'Unable to unmute mentions notification' ) ;
63
38
console . error ( e ) ;
64
39
throw ( e ) ;
65
40
} ) ) ;
66
-
67
- return activity ;
68
41
}
69
42
70
43
/**
71
44
* Mute mentions notification
72
45
* @param {Object } spark
73
46
* @param {String } convo
74
- * @returns {Object }
75
47
*/
76
48
export function muteMentionsNotification ( spark , convo ) {
77
- let activity ;
78
-
79
49
browser . call ( ( ) => spark . internal . conversation . muteMentions ( convo )
80
- . then ( ( a ) => {
81
- activity = a ;
82
-
83
- return activity ;
84
- } ) . catch ( ( e ) => {
50
+ . catch ( ( e ) => {
85
51
console . error ( 'Unable to mute mentions notification' ) ;
86
52
console . error ( e ) ;
87
53
throw ( e ) ;
88
54
} ) ) ;
89
-
90
- return activity ;
91
55
}
92
56
93
57
/**
94
58
* Remove mutes
95
59
* @param {Object } spark
96
60
* @param {String } convo
97
- * @returns {Object }
98
61
*/
99
62
export function removeAllMuteTags ( spark , convo ) {
100
- let activity ;
101
-
102
63
browser . call ( ( ) => spark . internal . conversation . removeAllMuteTags ( convo )
103
- . then ( ( a ) => {
104
- activity = a ;
105
-
106
- return activity ;
107
- } ) . catch ( ( e ) => {
64
+ . catch ( ( e ) => {
108
65
console . error ( 'Unable to remove all mute tags' ) ;
109
66
console . error ( e ) ;
110
67
throw ( e ) ;
111
68
} ) ) ;
112
-
113
- return activity ;
114
69
}
You can’t perform that action at this time.
0 commit comments