nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.63k stars 436 forks source link

Ability to set RemoteNickFormat for Matterbridge #4279

Open markuman opened 4 years ago

markuman commented 4 years ago

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

When using this for single user setup, it may annoy others on the target chat system when they see always

[nctalk] <markuman> my message
[nctalk] <markuman> bla blabla

So it would be nice to disable/overwrite it.

Describe alternatives you've considered

Dirty patch it like this

sed -i 's/\[{PROTOCOL}\] <{NICK}> //g' lib/MatterbridgeManager.php

Additional context

Screenshot_2020-10-04 Glowing Bear #ansible-aws Ansible + AWS https github com ansible community wiki aws

nickvergessen commented 4 years ago

Well you can also adjust your matterbridge config file in tmp

markuman commented 4 years ago

@nickvergessen
/tmp is on most systems not persistent I think.
And my setup is using docker. So I think I can automate it for my needs. But it would be nice to overwrite this settings/variables.

nickvergessen commented 4 years ago

Just ment its the better hack then adjusting the Talk source code

markuman commented 4 years ago

@nickvergessen

Just ment its the better hack then adjusting the Talk source code

True. But every click in the settings seems to overwrite the .toml file.
I need to mount it as :ro in the container or do chmod 444 on that file.

markuman commented 4 years ago

Uh, I figured out that the config is not persistent at all.

After restart

cat /tmp/bridge-8j5ditpi.log 
time="2020-10-04T17:44:45Z" level=info msg="Running version 1.18.3 8b26e42a" prefix=main
time="2020-10-04T17:44:45Z" level=fatal msg="Failed to read configuration file: &os.PathError{Op:"open", Path:"/tmp/bridge-8j5ditpi.toml", Err:0x2}" prefix=config

But in the right sidebar, the information are still present. So I need to click "save" again and hit several times on "enabled" until it gets the status "running".

leArthurDent commented 3 years ago

I'd just like to say that I'd also like this feature very much. Sadly, the toml files are not persistent and I haven't found a way to tweak the matterbidge config, except for adjusting MatterbridgeManager.php.