Skip to content

Commit

Permalink
Use only strings for data form values used in pubsub publish options …
Browse files Browse the repository at this point in the history
…and node configuration
  • Loading branch information
Syndace committed Sep 29, 2024
1 parent dd17840 commit d4242d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed
- Use only strings for data form values used in pubsub publish options and node configuration

## [1.0.0] - 26th of July, 2024

### Added
Expand Down
6 changes: 3 additions & 3 deletions slixmpp_omemo/xep_0384.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def _publish_item_and_configure_node(
node: str,
item: ET.Element,
item_id: str,
options: Dict[str, Any]
options: Dict[str, str]
) -> None:
"""
Publishes an item and makes sure that the node is configured correctly.
Expand Down Expand Up @@ -172,7 +172,7 @@ async def _upload_bundle(bundle: omemo.Bundle) -> None:
options={
"pubsub#access_model": "open",
"pubsub#persist_items": "true",
"pubsub#max_items": 1
"pubsub#max_items": "1"
}
)
except Exception: # pylint: disable=broad-exception-caught
Expand Down Expand Up @@ -316,7 +316,7 @@ async def _upload_device_list(namespace: str, device_list: Dict[int, Optional[st
options={
"pubsub#access_model": "open",
"pubsub#persist_items": "true",
"pubsub#max_items": 1
"pubsub#max_items": "1"
}
)
except Exception: # pylint: disable=broad-exception-caught
Expand Down

0 comments on commit d4242d3

Please sign in to comment.