gnome-shell/js/ui/components
Marco Trevisan (Treviño) 03a46be5c7 telepathyClient: Use proper Object to wrap different tpl messages
In telepathyClient we consider messages both Tpl.TextEvents and
Tpl.Messages, and we manually create JS objects to copy the properties we
care for each one. This may lead to objects not matching the interface we
want.

Instead, use an object with construct-only properties and two factory static
methods to initialize it.

Unfortunately we need to use the ChatMessageClass for the class name or
calling the static methods would trigger a gjs error as per [1].

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1113

[1] https://gitlab.gnome.org/GNOME/gjs/-/issues/310
2020-03-25 22:22:49 +00:00
..
__init__.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
automountManager.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
autorunManager.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
keyring.js dialogs: Hide caps lock warning if password entry is hidden 2020-02-01 08:08:33 +01:00
networkAgent.js networkAgent: Make searching VPN binaries asynchronous 2020-03-17 14:07:15 +00:00
polkitAgent.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
telepathyClient.js telepathyClient: Use proper Object to wrap different tpl messages 2020-03-25 22:22:49 +00:00