aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/module_manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-03-29 20:23:47 +0200
committerfiaxh <git@lightrise.org>2020-03-29 20:24:39 +0200
commit12cd56612dd6edd056e2cd8aae59ea3ae8f05d1e (patch)
tree1da6667e85128aad0c2992b3c2b490f42defce6f /libdino/src/service/module_manager.vala
parent853dfa2d6f0d1300b096f0c6a12ca179208f5287 (diff)
downloaddino-12cd56612dd6edd056e2cd8aae59ea3ae8f05d1e.tar.gz
dino-12cd56612dd6edd056e2cd8aae59ea3ae8f05d1e.zip
Store entity identity info, use it in conversation list tooltips
Diffstat (limited to 'libdino/src/service/module_manager.vala')
-rw-r--r--libdino/src/service/module_manager.vala9
1 files changed, 1 insertions, 8 deletions
diff --git a/libdino/src/service/module_manager.vala b/libdino/src/service/module_manager.vala
index a3f56652..0cd76a14 100644
--- a/libdino/src/service/module_manager.vala
+++ b/libdino/src/service/module_manager.vala
@@ -8,14 +8,8 @@ namespace Dino {
public class ModuleManager {
private HashMap<Account, ArrayList<XmppStreamModule>> module_map = new HashMap<Account, ArrayList<XmppStreamModule>>(Account.hash_func, Account.equals_func);
- private EntityCapabilitiesStorage entity_capabilities_storage;
-
public signal void initialize_account_modules(Account account, ArrayList<XmppStreamModule> modules);
- public ModuleManager(Database db) {
- entity_capabilities_storage = new EntityCapabilitiesStorage(db);
- }
-
public T? get_module<T>(Account account, Xmpp.ModuleIdentity<T> identity) {
if (identity == null) return null;
lock (module_map) {
@@ -59,7 +53,7 @@ public class ModuleManager {
module_map[account].add(new Bind.Module(account.resourcepart));
module_map[account].add(new Session.Module());
module_map[account].add(new Roster.Module());
- module_map[account].add(new Xep.ServiceDiscovery.Module.with_identity("client", "pc"));
+ module_map[account].add(new Xep.ServiceDiscovery.Module.with_identity("client", "pc", "Dino"));
module_map[account].add(new Xep.PrivateXmlStorage.Module());
module_map[account].add(new Xep.Bookmarks.Module());
module_map[account].add(new Xep.Bookmarks2.Module());
@@ -69,7 +63,6 @@ public class ModuleManager {
module_map[account].add(new Xep.MessageCarbons.Module());
module_map[account].add(new Xep.Muc.Module());
module_map[account].add(new Xep.Pubsub.Module());
- module_map[account].add(new Xep.EntityCapabilities.Module(entity_capabilities_storage));
module_map[account].add(new Xep.MessageDeliveryReceipts.Module());
module_map[account].add(new Xep.BlockingCommand.Module());
module_map[account].add(new Xep.ChatStateNotifications.Module());