Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Jeroen van Veen <jvanveen@protonmail.com>
To: "galene@lists.galene.org" <galene@lists.galene.org>
Subject: [Galene] Re: groupAction clearchat & lock
Date: Fri, 30 Jul 2021 15:13:48 +0000	[thread overview]
Message-ID: <bHGOervjCcl8C0XJnfwbRg14DPZGTMKcAMEZxncpbY6dDdNF5dq1hAuKntSV7qT2D6xip-4AWNH6P9J3KQHH2qh1zGiqfEa4izrr3tDlRUQ=@protonmail.com> (raw)
In-Reply-To: <XXJY1gPag5KtONJbCckVw_JjrwW49aweL9FyG8pV_0icjk6NfZoHo5PdqFmU4O15l-36Dh3hr_AmhmjYeg2VSxwA2zccfy19LA0AzcZmg98=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 2209 bytes --]

One more small thing, shouldn't app.connection.userMessage('kick', user.id, text, false) echo
the user message? It only seems to be echoed without targetting a specific user.

-- Jeroen

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Op vrijdag 30 juli 2021 om 5:00 PM schreef Jeroen van Veen <jvanveen@protonmail.com>:

> Just reminded that I could accomplish the same thing with triggering the userMessage myself.
> Not sure what the best option is :)
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> Op vrijdag 30 juli 2021 om 4:42 PM schreef Jeroen van Veen <jvanveen@protonmail.com>:
>
>> Hi,
>>
>> I'm working on adding context actions (groupAction/userAction) with optional custom
>> messages to Pyrite. After performing an action, I would like to add a notification to
>> all users that are affected by the action. For instance, to clear the chat, an operator would do:
>> "connection.groupAction('clearchat')"
>>
>> Next, all users (including the operator) receive a user message (onusermessage) with kind 'clearchat',
>> that triggers a notification in Pyrite. This, together with echo, is a nice central place to trigger action
>> notifications from.
>>
>> If I do something similar for lock, e.g. "connection.groupAction('lock')", I would now check the
>> "joined" (kind "change") event for the locked status. (Would it be possible to have
>> the locked property in there all the time, even if it's not locked?) For record/unrecord, I would check the
>> onUser event for a user with name RECORDING.
>>
>> Would it be an idea to trigger user messages for groupAction commands? This may
>> be a good place to store the custom message as well? I can't seem to get
>> to the custom groupAction message now, (e.g. "connection.groupAction('lock', 'My custom message')")
>> With userAction, e.g. "userAction('kick', user.id, 'Custom message')", this would trigger a user message
>> with kind 'error'.
>>
>> Using a custom message prefix, I could identify the action that triggered the custom 'error' message,
>> but maybe a 'kick' kind of message would be more appropriate? Could groupAction do something similar,
>> or did I overlook something?
>>
>> Cheers,
>>
>> Jeroen

[-- Attachment #2: Type: text/html, Size: 3815 bytes --]

  reply	other threads:[~2021-07-30 15:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 14:42 [Galene] " Jeroen van Veen
2021-07-30 15:00 ` [Galene] " Jeroen van Veen
2021-07-30 15:13   ` Jeroen van Veen [this message]
2021-07-30 17:40     ` Juliusz Chroboczek
2021-07-30 17:28 ` Juliusz Chroboczek
2021-07-30 17:34 ` Juliusz Chroboczek
2021-07-30 17:45   ` Juliusz Chroboczek
2021-08-02 18:54     ` Jeroen van Veen
2021-07-30 17:39 ` Juliusz Chroboczek
2021-08-02 18:52   ` Jeroen van Veen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bHGOervjCcl8C0XJnfwbRg14DPZGTMKcAMEZxncpbY6dDdNF5dq1hAuKntSV7qT2D6xip-4AWNH6P9J3KQHH2qh1zGiqfEa4izrr3tDlRUQ=@protonmail.com' \
    --to=jvanveen@protonmail.com \
    --cc=galene@lists.galene.org \
    --subject='[Galene] Re: groupAction clearchat & lock' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox