Skip to content

Commit

Permalink
Rename old yammer recipe to 'viva-engage' (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
marrws authored Oct 4, 2024
1 parent 0e8685c commit 53918bf
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 17 deletions.
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 @@
{
"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.

0 comments on commit 53918bf

Please sign in to comment.