Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions pkg/connector/handlemeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,16 @@ func (m *MetaClient) handleMetaEvent(ctx context.Context, rawEvt any) {
if !evt.IsTyping {
timeout = 0
}
portalKey := m.makeFBPortalKey(threadKey, table.UNKNOWN_THREAD_TYPE)
m.UserLogin.QueueRemoteEvent(&simplevent.Typing{
EventMeta: simplevent.EventMeta{
Type: bridgev2.RemoteEventTyping,
PortalKey: m.makeFBPortalKey(threadKey, table.UNKNOWN_THREAD_TYPE),
Sender: m.makeEventSender(userID),
Timestamp: evt.Timestamp,
PortalKey: portalKey,
// We don't know the thread type here, which affects whether the portal key receiver should be set.
// Mark it as uncertain so the bridge can fall back to a receiver-less portal key if needed.
UncertainReceiver: !m.Main.Bridge.Config.SplitPortals,
Sender: m.makeEventSender(userID),
Timestamp: evt.Timestamp,
},
Timeout: timeout,
Type: bridgev2.TypingTypeText,
Expand Down