Skip to content

Draft: Refactor the send_message methods; typed Jids

Werner Kroneman requested to merge werner.kroneman/xmpp-rs:typed-recipient into main

Hi,

while implementing !279 and !277, I found myself duplicating a lot of code and Event variants in order to mirror the separate treatment of messages, group messages and group private messages.

In this MR, I propose a way to unify these into a common API by defining a common trait for how to send a message to a Jid, where jids are of various types.

Edited by Werner Kroneman

Merge request reports