Skip to content

Commit

Permalink
Fix chat messages length
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kudinov committed Jul 19, 2024
1 parent 0371e1a commit 58ceeb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions backend/app/services/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@


def build_incoming_smartapp_event_text(event: Dict[str, Any]) -> str:
return f"Incoming:\n```{beautify_dict(event)}```"
json = beautify_dict(event)[:3000]
return f"Incoming:\n```{json}```"


def build_outgoing_smartapp_event_text(event: Dict[str, Any]) -> str:
return f"Outgoing:\n```{beautify_dict(event)}```"
json = beautify_dict(event)[:3000]
return f"Outgoing:\n```{json}```"


def build_smartapp_notification_text(event: Dict[str, Any]) -> str:
return f"Event:\n```{beautify_dict(event)}```"
json = beautify_dict(event)[:3000]
return f"Event:\n```{json}```"


def build_file_meta_text(meta_file: File) -> str:
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-feature-smartapp",
"version": "2.2.3",
"version": "2.2.4",
"description": "SmartApp with all features",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 58ceeb4

Please sign in to comment.