google_chat_ros: enable to get therad_name message result #496
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@mqcmd196 This is a modification to reply messages in the same thread like this
![Screenshot from 2023-10-26 21-48-47](https://private-user-images.githubusercontent.com/493276/278342328-e704aa05-13cb-4cd0-a231-82419d87d8d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDExNjQsIm5iZiI6MTczOTQ0MDg2NCwicGF0aCI6Ii80OTMyNzYvMjc4MzQyMzI4LWU3MDRhYTA1LTEzY2ItNGNkMC1hMjMxLTgyNDE5ZDg3ZDhkNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMDAxMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lN2Q2N2Q4MDg2MzdjNWMyZjE5Y2I0ZDNlZmJhN2UyZjJmNDhkYzA5NmUwMjgxNzhlY2I4NzI5ZjNhYzVhZTIzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.F7AWoatZRoLvGNEZhSIxQKhZV9C1k3sUSKyaMQvysgo)
instead of creating a new thread like this one.
![Screenshot from 2023-10-26 22-04-00](https://private-user-images.githubusercontent.com/493276/278345177-63b35990-1769-4da5-bc46-78cbbbb9a1db.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDExNjQsIm5iZiI6MTczOTQ0MDg2NCwicGF0aCI6Ii80OTMyNzYvMjc4MzQ1MTc3LTYzYjM1OTkwLTE3NjktNGRhNS1iYzQ2LTc4Y2JiYmI5YTFkYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMDAxMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZDI5MjExZTZlZjE1M2U0NWQ1ZTU0NzljODA2N2UxYzMzODAzNDM5YjExNjA5ZjAxZmE4M2YxZjE3YzM0NWFjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tlBWAmZLmZwoUJqox4iUAzWR8V8TrJV51ABeNCnVV60)
One strategy is to pass SimpleActionClient to the function, as in this PR modification.
Another solution would be to return the result of the message like k-okada@e9a4904 and write code like this
Which would be better? Or is there another way?