Skip to content

Commit f036261

Browse files
committed
fix tick on line - use message id out of send
1 parent 85621c8 commit f036261

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
font-size: 11px;
354354
min-width: 14px;
355355
height: 14px;
356+
margin-left: 4px;
356357
}
357358
}
358359

@@ -611,9 +612,11 @@
611612
font-size: 12px;
612613
min-width: 16px;
613614
height: 16px;
614-
display: flex;
615+
display: inline-flex;
615616
align-items: center;
616617
justify-content: center;
618+
margin-left: 5px;
619+
vertical-align: middle;
617620
}
618621

619622
.message-status.sending {
@@ -1001,7 +1004,7 @@
10011004
createLightNode,
10021005
ReliableChannel,
10031006
HealthStatus,
1004-
} from 'https://unpkg.com/@waku/[email protected]3e66a33.0/bundle/index.js';
1007+
} from 'https://unpkg.com/@waku/[email protected]4d5c152.0/bundle/index.js';
10051008

10061009
// Define protobuf schema
10071010
const protoSchema = `
@@ -1968,7 +1971,7 @@
19681971
// Encode with protobuf
19691972
const protoMessage = this.Chat2Message.create(message);
19701973
const payload = this.Chat2Message.encode(protoMessage).finish();
1971-
const messageId = ReliableChannel.getMessageId(payload)
1974+
const messageId = this.reliableChannel.send(payload);
19721975

19731976
// Track this message as locally sent
19741977
this.localSentMessages.set(messageId, chatMessageId);
@@ -1997,9 +2000,6 @@
19972000
}
19982001
})
19992002

2000-
// Send the message
2001-
this.reliableChannel.send(payload);
2002-
20032003
} catch (error) {
20042004
console.error('Failed to send message:', error);
20052005
this.addSystemMessage(`Failed to send message: ${error.message}`);
@@ -2171,9 +2171,9 @@
21712171
<span class="timestamp">[${timestamp}]</span>
21722172
<span class="sender" style="color: ${senderColor};">&lt;${message.sender}&gt;</span>
21732173
<span class="message-text"> ${this.escapeHtml(message.text)}</span>
2174+
<span class="message-status ${statusClass}">${statusIcon}</span>
21742175
</div>
21752176
<button class="reply-button">[Reply]</button>
2176-
<div class="message-status ${statusClass}">${statusIcon}</div>
21772177
`;
21782178

21792179
// Add click handler for reply preview

0 commit comments

Comments
 (0)