diff options
author | fiaxh <git@lightrise.org> | 2024-09-29 16:54:50 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2024-09-29 16:57:31 +0200 |
commit | 4d4ba7dde6d3153fa5ea652a8b37d7b78f511484 (patch) | |
tree | aca7991e647a326c2da88ffb60fa32f5ae4594c5 /libdino/src/service/module_manager.vala | |
parent | 64e4fb00374b149580478145137f59374f287391 (diff) | |
download | dino-4d4ba7dde6d3153fa5ea652a8b37d7b78f511484.tar.gz dino-4d4ba7dde6d3153fa5ea652a8b37d7b78f511484.zip |
Generate new resource on resource conflict
Diffstat (limited to 'libdino/src/service/module_manager.vala')
-rw-r--r-- | libdino/src/service/module_manager.vala | 4 |
1 files changed, 2 insertions, 2 deletions
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<XmppStreamModule> get_modules(Account account, string? resource = null) { + public ArrayList<XmppStreamModule> get_modules(Account account) { ArrayList<XmppStreamModule> modules = new ArrayList<XmppStreamModule>(); 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; } |