diff libervia/backend/plugins/plugin_xep_0384.py @ 4283:23842a63ea00

plugin XEP-0060: add a `force` options for publish options in `send_items`: The new `force` option can be used to force the update of configuration is `publish-option` fails. Use this new `force` option in XEP-0384.
author Goffi <goffi@goffi.org>
date Sun, 14 Jul 2024 16:45:17 +0200
parents 0d7bb4df2343
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0384.py	Sat Jul 13 17:45:47 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0384.py	Sun Jul 14 16:45:17 2024 +0200
@@ -891,7 +891,7 @@
                                 XEP_0060.OPT_ACCESS_MODEL: "open",
                                 XEP_0060.OPT_MAX_ITEMS: "max",
                             },
-                            XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "raise",
+                            XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "force",
                         },
                     )
                 except (error.StanzaError, Exception) as e:
@@ -1059,7 +1059,7 @@
                             XEP_0060.OPT_MAX_ITEMS: 1,
                             XEP_0060.OPT_ACCESS_MODEL: "open",
                         },
-                        XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "raise",
+                        XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "force",
                     },
                 )
             except (error.StanzaError, Exception) as e: