diff options
| author | fiaxh <git@lightrise.org> | 2025-04-08 12:15:12 +0200 |
|---|---|---|
| committer | fiaxh <git@lightrise.org> | 2025-04-08 12:15:12 +0200 |
| commit | a21800860e00d4078fa2b339bc16087ea1f22bbc (patch) | |
| tree | a09194f34e61c4329fae0fd641c499b12f3c0044 /plugins/rtp/src/plugin.vala | |
| parent | ea54d659e5729ec9d2493ad1e4a268425b180891 (diff) | |
Show call button regardless of contact online status
Diffstat (limited to 'plugins/rtp/src/plugin.vala')
| -rw-r--r-- | plugins/rtp/src/plugin.vala | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/rtp/src/plugin.vala b/plugins/rtp/src/plugin.vala index 4a8e2ddf..58ce871c 100644 --- a/plugins/rtp/src/plugin.vala +++ b/plugins/rtp/src/plugin.vala @@ -279,19 +279,8 @@ public class Dino.Plugins.Rtp.Plugin : RootInterface, VideoCallPlugin, Object { Gst.deinit(); } - public bool supports(string? media) { - if (!codec_util.is_element_supported("rtpbin")) return false; - - if (media == "audio") { - if (get_devices("audio", false).is_empty) return false; - if (get_devices("audio", true).is_empty) return false; - } - - if (media == "video") { - if (get_devices("video", false).is_empty) return false; - } - - return true; + public bool supported() { + return codec_util.is_element_supported("rtpbin"); } public VideoCallWidget? create_widget(WidgetType type) { |
