Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move old yammer recipe to /viva-engage #584

Merged
merged 14 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
13 changes: 13 additions & 0 deletions recipes/viva-engage/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
13 changes: 13 additions & 0 deletions recipes/viva-engage/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
marrws marked this conversation as resolved.
Show resolved Hide resolved
"id": "viva-engage",
"name": "Viva Engage",
"version": "1.0.0",
"license": "MIT",
"aliases": [
"yammer"
],
"config": {
"serviceURL": "https://engage.cloud.microsoft",
"hasIndirectMessages": true
}
}
12 changes: 6 additions & 6 deletions recipes/yammer/webview.js → recipes/viva-engage/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ module.exports = Ferdium => {
const getMessages = () => {
let directMessages = 0;
let indirectMessages = 0;
const notificationElement = document.querySelector(
'.yj-notifications-indicator-count',
);
const newMessagesElement = document.querySelector(
'.yj-thread-list--new-messages-notice:not(.is-hidden) .yj-thread-list--new-message-text',
);
const notificationElement = document.querySelectorAll(
'div.badge-136 div.fui-CounterBadge',
)[1];
const newMessagesElement = document.querySelectorAll(
'div.badge-136 div.fui-CounterBadge',
)[0];

if (notificationElement) {
directMessages = Ferdium.safeParseInt(notificationElement.textContent);
Expand Down
1 change: 0 additions & 1 deletion recipes/yammer/icon.svg

This file was deleted.

10 changes: 0 additions & 10 deletions recipes/yammer/package.json

This file was deleted.

Loading