From 4d4ba7dde6d3153fa5ea652a8b37d7b78f511484 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 29 Sep 2024 16:54:50 +0200 Subject: Generate new resource on resource conflict --- libdino/src/service/module_manager.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdino/src/service/module_manager.vala') diff --git a/libdino/src/service/module_manager.vala b/libdino/src/service/module_manager.vala index eeb5369a..eb9e4fbc 100644 --- a/libdino/src/service/module_manager.vala +++ b/libdino/src/service/module_manager.vala @@ -24,7 +24,7 @@ public class ModuleManager { return null; } - public ArrayList get_modules(Account account, string? resource = null) { + public ArrayList get_modules(Account account) { ArrayList modules = new ArrayList(); lock (module_map) { @@ -34,7 +34,7 @@ public class ModuleManager { foreach (XmppStreamModule module in module_map[account]) { if (module.get_id() == Bind.Module.IDENTITY.id) { - ((Bind.Module) module).requested_resource = resource ?? account.resourcepart; + ((Bind.Module) module).requested_resource = account.resourcepart; } else if (module.get_id() == Sasl.Module.IDENTITY.id) { ((Sasl.Module) module).password = account.password; } -- cgit v1.2.3-70-g09d2