|
|
@@ -142,10 +142,11 @@ func (s ICBMService) ChannelMsgToHost(ctx context.Context, sess *state.Session,
|
|
|
clientIM.Append(tlv)
|
|
|
}
|
|
|
|
|
|
- // todo I forget why I added this TLV here, but it should be added
|
|
|
- // conditionally. I moved it from the beginning of the TLV list to the end
|
|
|
- // since BeAIM assumes that the first TLV is 0x02.
|
|
|
- clientIM.Append(wire.NewTLVBE(wire.ICBMTLVWantEvents, []byte{}))
|
|
|
+ if inBody.ChannelID == wire.ICBMChannelIM || inBody.ChannelID == wire.ICBMChannelMIME {
|
|
|
+ // tell the receiver that we want to receive their typing events.
|
|
|
+ // todo: only send this TLV if the sender opts to disclose typing events
|
|
|
+ clientIM.Append(wire.NewTLVBE(wire.ICBMTLVWantEvents, []byte{}))
|
|
|
+ }
|
|
|
|
|
|
s.messageRelayer.RelayToScreenName(ctx, recipSess.IdentScreenName(), wire.SNACMessage{
|
|
|
Frame: wire.SNACFrame{
|