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

fix: space notification links #10603

Draft
wants to merge 1 commit into
base: stable-8.0
Choose a base branch
from

Conversation

JammingBen
Copy link
Collaborator

Description

Fixes links for incoming space notifications if the user has been added to a new space. Also makes sure links are being removed if a user has been removed from a space and the space had been loaded before.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Fixes links for incoming space notifications if the user has been added to a new space. Also makes sure links are being removed if a user has been removed from a space and the space had been loaded before.
@JammingBen JammingBen self-assigned this Mar 14, 2024
@@ -175,21 +176,47 @@ export default {
const space = store.getters['runtime/spaces/spaces'].find(
(s) => s.fileId === messageRichParameters?.space?.id.split('!')[0] && !s.disabled
)
if (space) {

if (space && subject === 'Removed from Space') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the subject translated by the backend? So this would only work for users who have set English as language?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also... don't we have a different property to check on? Subject is really ugly for this :-(

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha yes, totally forgot 🙈 Well, then this is blocked by the server. There is no other way to distinguish between the subjects.

I'll create an issue for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you 💪

Copy link

sonarcloud bot commented Mar 14, 2024

@kulmann kulmann marked this pull request as draft March 14, 2024 08:12
@JammingBen
Copy link
Collaborator Author

Currently blocked by owncloud/ocis#8645.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants