2019-07-23 20:56:05 +00:00
|
|
|
import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets UID of the the pending notification to use it when hiding
|
|
|
|
* the notification is necessary, or unsets it when undefined (or no param) is
|
|
|
|
* passed.
|
|
|
|
*
|
|
|
|
* @param {?number} uid - The UID of the notification.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_CURRENT_NOTIFICATION_UID,
|
|
|
|
* uid: number
|
|
|
|
* }}
|
|
|
|
*/
|
2022-10-28 06:41:12 +00:00
|
|
|
export function setCurrentNotificationUid(uid?: string) {
|
2019-07-23 20:56:05 +00:00
|
|
|
return {
|
|
|
|
type: SET_CURRENT_NOTIFICATION_UID,
|
|
|
|
uid
|
|
|
|
};
|
|
|
|
}
|