Skip to content

Conversation

@nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Sep 23, 2022

Fix #7988

/call/…

  • If the user is a participant
    • Title is the conversation name
    • Description the conversation description
  • Open conversation joinable for the user
    • Title is the conversation name
    • Description the conversation description
  • Public link (with and without password)
    • Title is the "Private conversation"
    • Description is empty

/call/…#message_…

To get a closer preview the user needs to be a participant (open conversation or public link are not enough, in those cases the above information is shown)

  • Title is "Message of {user} in {conversation}"
  • Description is the plain text chat message
Participant Stranger
Bildschirmfoto vom 2022-09-23 14-47-20 Bildschirmfoto vom 2022-09-23 14-47-47

@nickvergessen nickvergessen added 3. to review enhancement feature: chat 💬 Chat and system messages feature: api 🛠️ OCS API for conversations, chats and participants labels Sep 23, 2022
@nickvergessen nickvergessen added this to the 💟 Next Major (26) milestone Sep 23, 2022
@julien-nc julien-nc self-requested a review September 23, 2022 15:07
@nickvergessen
Copy link
Member Author

nickvergessen commented Sep 23, 2022

@nickvergessen nickvergessen force-pushed the feature/noid/call-url-reference-provider branch from 42262d7 to 1481a19 Compare September 27, 2022 10:19
Comment on lines 81 to 87
if (str_starts_with($referenceText, $indexPhpUrl)) {
$urlOfInterest = substr($referenceText, strlen($indexPhpUrl)) ?: null;
} elseif (str_starts_with($referenceText, $rewriteUrl)) {
$urlOfInterest = substr($referenceText, strlen($rewriteUrl)) ?: null;
} else {
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe will be good to put this in a separated method to make this method more simple.
Suggestion: extractUrlOfInterest

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not really a fan of these micro functions where you have to jump around to see what the bigger picture does

@nickvergessen nickvergessen force-pushed the feature/noid/call-url-reference-provider branch from 152edb1 to 0c7599f Compare September 29, 2022 08:33
@nickvergessen nickvergessen merged commit 76d376e into master Sep 29, 2022
@nickvergessen nickvergessen deleted the feature/noid/call-url-reference-provider branch September 29, 2022 16:27
@nickvergessen
Copy link
Member Author

/backport to stable25

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

Labels

3. to review enhancement feature: api 🛠️ OCS API for conversations, chats and participants feature: chat 💬 Chat and system messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement link widget thingy for /call/ urls

6 participants