Skip to content

Commit

Permalink
Merge pull request #17 from solacecommunity/bug/message-display-problems
Browse files Browse the repository at this point in the history
Fix message and headers overflow and handle SDT messages correctly
  • Loading branch information
nicholasdgoodman authored Dec 19, 2024
2 parents 9d8fb8f + 60f7e8c commit a0740f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/components/RootLayout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
}
.panelOuterContent {
flex-grow: 1;
overflow-y: hidden;
}
.panelInnerContent {
height: 100%;
overflow-y: auto;
}
7 changes: 3 additions & 4 deletions src/hooks/solace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ class ReplayQueueBrowser {

return messages.map((msg, n) => ({
meta: msgMetaData[n],
payload: msg.getBinaryAttachment().toString(),
size: msg.getBinaryAttachment().length,
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
headers: {
destination: msg.getDestination().getName(),
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),
Expand Down Expand Up @@ -334,7 +333,7 @@ class ForwardQueueBrowser {

messages.forEach(msg => {
const msgObj = {
payload: msg.getBinaryAttachment().toString(),
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
headers: {
destination: msg.getDestination().getName(),
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),
Expand Down Expand Up @@ -509,7 +508,7 @@ class ReverseQueueBrowser {

messages.forEach(msg => {
const msgObj = {
payload: msg.getBinaryAttachment().toString(),
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
headers: {
destination: msg.getDestination().getName(),
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),
Expand Down

0 comments on commit a0740f2

Please sign in to comment.