Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy for chat and COMM API #711

Merged
merged 9 commits into from
May 15, 2024

Conversation

modos189
Copy link
Contributor

@modos189 modos189 commented Feb 27, 2024

On top of #447

Problem: legacy plugins overwrite window.chat functions, but the new code uses the COMM API and these plugin changes are not called. Also, before this PR, a lot of window.chat functions were removed, which could cause errors in the legacy plugins.

Solution: I created a proxy that calls the alternatives in the COMM API when calling the removed window.chat functions. It also overwrites COMM API methods when they are overwritten in window.chat by a legacy plugin.

I tested this solution with plugins from Commutity plugins and it looks like a working solution.

@modos189 modos189 added the core label Feb 27, 2024
Copy link

github-actions bot commented Feb 27, 2024

🤖 Pull request artifacts

file commit
IITC_Mobile-test.apk 7fe9466
test-0.38.1.20240515.104515.zip 7fe9466

See build on website

@modos189 modos189 force-pushed the comm_tabs_refactor_fix_legacy branch from 8b4608c to 854f16c Compare March 10, 2024 17:20
@modos189 modos189 marked this pull request as ready for review March 10, 2024 17:21
@modos189 modos189 force-pushed the comm_tabs_refactor_fix_legacy branch 2 times, most recently from 86754e8 to 4a747db Compare March 18, 2024 18:30
….comm.portalNameTransformations) so that you can extend transformation rules from plugins without having to rewrite the function
….messageTransformFunctions) so that plugin developers can add new message transformation rules or generate entirely new message markup without having to rewrite the function
…fault, the center of the map) is placed in the IITC.comm.getLatLngForSendingMessage() function.
@modos189 modos189 force-pushed the comm_tabs_refactor_fix_legacy branch from f03fc04 to 7fe9466 Compare May 15, 2024 10:44
@modos189 modos189 merged commit 199c9f7 into IITC-CE:master May 15, 2024
4 checks passed
@modos189 modos189 deleted the comm_tabs_refactor_fix_legacy branch May 15, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant