@@ -24,7 +24,6 @@ import #local
2424 errors,
2525 identity,
2626 inbox,
27- message_info,
2827 proto_types,
2928 types,
3029 utils
@@ -38,7 +37,7 @@ logScope:
3837# ################################################
3938
4039type
41- MessageCallback * = proc (conversation: Conversation , msgInfo: MessageInfo , msg: ContentFrame ): Future [void ] {.async .}
40+ MessageCallback * = proc (conversation: Conversation , msg: ReceivedMessage ): Future [void ] {.async .}
4241 NewConvoCallback * = proc (conversation: Conversation ): Future [void ] {.async .}
4342 DeliveryAckCallback * = proc (conversation: Conversation ,
4443 msgId: MessageId ): Future [void ] {.async .}
@@ -126,10 +125,9 @@ proc listConversations*(client: Client): seq[Conversation] =
126125proc onNewMessage * (client: Client , callback: MessageCallback ) =
127126 client.newMessageCallbacks.add (callback)
128127
129- proc notifyNewMessage * (client: Client , convo: Conversation , msgInfo: MessageInfo ,
130- content: ContentFrame ) =
128+ proc notifyNewMessage * (client: Client , convo: Conversation , msg: ReceivedMessage ) =
131129 for cb in client.newMessageCallbacks:
132- discard cb (convo, msgInfo, content )
130+ discard cb (convo, msg )
133131
134132proc onNewConversation * (client: Client , callback: NewConvoCallback ) =
135133 client.newConvoCallbacks.add (callback)
0 commit comments