Skip to content

Commit 4ea165c

Browse files
committed
fixup! Emit event on status-change
1 parent 4fd72c8 commit 4ea165c

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/user_status/js/dashboard.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/js/dashboard.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/js/user-status-menu.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/js/user-status-menu.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/user_status/src/store/userStatus.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
clearMessage,
2828
} from '../services/statusService'
2929
import { loadState } from '@nextcloud/initial-state'
30+
import { getCurrentUser } from '@nextcloud/auth'
3031
import { getTimestampForClearAt } from '../services/clearAtService'
3132
import { emit } from '@nextcloud/event-bus'
3233

@@ -159,6 +160,7 @@ const actions = {
159160
message: state.message,
160161
icon: state.icon,
161162
clearAt: state.clearAt,
163+
userId: getCurrentUser()?.uid,
162164
})
163165
},
164166

@@ -187,6 +189,7 @@ const actions = {
187189
message: state.message,
188190
icon: state.icon,
189191
clearAt: state.clearAt,
192+
userId: getCurrentUser()?.uid,
190193
})
191194
},
192195

@@ -212,6 +215,7 @@ const actions = {
212215
message: state.message,
213216
icon: state.icon,
214217
clearAt: state.clearAt,
218+
userId: getCurrentUser()?.uid,
215219
})
216220
},
217221

@@ -231,6 +235,7 @@ const actions = {
231235
message: state.message,
232236
icon: state.icon,
233237
clearAt: state.clearAt,
238+
userId: getCurrentUser()?.uid,
234239
})
235240
},
236241

0 commit comments

Comments
 (0)