Skip to content

Commit a0740f2

Browse files
Merge pull request #17 from solacecommunity/bug/message-display-problems
Fix message and headers overflow and handle SDT messages correctly
2 parents 9d8fb8f + 60f7e8c commit a0740f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/RootLayout/styles.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
}
99
.panelOuterContent {
1010
flex-grow: 1;
11+
overflow-y: hidden;
1112
}
1213
.panelInnerContent {
1314
height: 100%;
15+
overflow-y: auto;
1416
}

src/hooks/solace.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ class ReplayQueueBrowser {
122122

123123
return messages.map((msg, n) => ({
124124
meta: msgMetaData[n],
125-
payload: msg.getBinaryAttachment().toString(),
126-
size: msg.getBinaryAttachment().length,
125+
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
127126
headers: {
128127
destination: msg.getDestination().getName(),
129128
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),
@@ -334,7 +333,7 @@ class ForwardQueueBrowser {
334333

335334
messages.forEach(msg => {
336335
const msgObj = {
337-
payload: msg.getBinaryAttachment().toString(),
336+
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
338337
headers: {
339338
destination: msg.getDestination().getName(),
340339
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),
@@ -509,7 +508,7 @@ class ReverseQueueBrowser {
509508

510509
messages.forEach(msg => {
511510
const msgObj = {
512-
payload: msg.getBinaryAttachment().toString(),
511+
payload: msg.getSdtContainer()?.getValue() || msg.getBinaryAttachment().toString(),
513512
headers: {
514513
destination: msg.getDestination().getName(),
515514
replicationGroupMsgId: msg.getReplicationGroupMessageId().toString(),

0 commit comments

Comments
 (0)