superdesk/superdesk-client-core

View on GitHub
scripts/apps/stream/services/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {gettext} from 'core/utils';

ActivityMessageService.$inject = [];
export function ActivityMessageService() {
    return {
        format: (activity) => {
            if (activity && activity.name !== 'notify') {
                return gettext(activity.message, activity.data);
            }
            return '';
        },
    };
}