mirror of
https://github.com/idanoo/GoMatrixCloner
synced 2025-07-01 13:42:19 +00:00
Clean up messages
This commit is contained in:
parent
71cb1f997e
commit
b971cbe5f8
1 changed files with 3 additions and 1 deletions
|
@ -145,6 +145,8 @@ func Run() {
|
|||
}
|
||||
}
|
||||
|
||||
mtrx.sendMessage(context.Background(), mtrx.toRoom, "Bridge reloaded 👌")
|
||||
|
||||
// Keep it running!!
|
||||
mtrx.quitMeDaddy = make(chan struct{})
|
||||
for {
|
||||
|
@ -178,7 +180,7 @@ func (mtrx *MtrxClient) handleMessageEvent(ctx context.Context, evt *event.Event
|
|||
}
|
||||
|
||||
mtrx.sendMessage(ctx, mtrx.toRoom, fmt.Sprintf(
|
||||
"%s: %s",
|
||||
"%s:\n%s",
|
||||
evt.Sender.Localpart(),
|
||||
evt.Content.AsMessage().Body,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue