aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/module_manager.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/module_manager.vala')
-rw-r--r--libdino/src/service/module_manager.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/module_manager.vala b/libdino/src/service/module_manager.vala
index f5f3b63e..78819bb3 100644
--- a/libdino/src/service/module_manager.vala
+++ b/libdino/src/service/module_manager.vala
@@ -40,7 +40,7 @@ public class ModuleManager {
foreach (XmppStreamModule module in module_map[account]) {
if (module.get_id() == Bind.Module.IDENTITY.id) {
- (module as Bind.Module).requested_resource == null ? account.resourcepart : resource;
+ (module as Bind.Module).requested_resource = resource ?? account.resourcepart;
} else if (module.get_id() == PlainSasl.Module.IDENTITY.id) {
(module as PlainSasl.Module).password = account.password;
}