Skip to content

Commit

Permalink
fix quote when replying to own message in whatsapp group
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Jan 20, 2024
1 parent c71bb57 commit e9f212c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.28"
#define NCHAT_VERSION "4.29"
5 changes: 0 additions & 5 deletions lib/wmchat/go/gowm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1704,11 +1704,6 @@ func WmSendMessage(connId int, chatId string, text string, quotedId string, quot
Conversation: &quotedText,
}

selfId := JidToStr(*client.Store.ID)
if quotedSender == selfId {
quotedSender = chatId
}

quotedSender = strings.Replace(quotedSender, "@c.us", "@s.whatsapp.net", 1)

LOG_TRACE("send quoted " + quotedId + ", " + quotedText + ", " + quotedSender)
Expand Down
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "January 2024" "nchat v4.28" "User Commands"
.TH NCHAT "1" "January 2024" "nchat v4.29" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down

0 comments on commit e9f212c

Please sign in to comment.