CN112291420B - Message display method and terminal equipment - Google Patents

Message display method and terminal equipment Download PDF

Info

Publication number
CN112291420B
CN112291420B CN201910632069.9A CN201910632069A CN112291420B CN 112291420 B CN112291420 B CN 112291420B CN 201910632069 A CN201910632069 A CN 201910632069A CN 112291420 B CN112291420 B CN 112291420B
Authority
CN
China
Prior art keywords
message
receiver
designated
content
recipient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910632069.9A
Other languages
Chinese (zh)
Other versions
CN112291420A (en
Inventor
顾水云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910632069.9A priority Critical patent/CN112291420B/en
Publication of CN112291420A publication Critical patent/CN112291420A/en
Application granted granted Critical
Publication of CN112291420B publication Critical patent/CN112291420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a message display method and terminal equipment, wherein the method comprises the following steps: receiving a designated recipient message of a chat session; and displaying the message content of the message of the appointed receiver in a chat session page, wherein the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises content information of the current message receiver to the message appointed receiver. According to the method and the device, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the content information of the appointed receiver message from the current message receiver is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message from the content information of the appointed receiver message by the current message receiver, and therefore the social communication efficiency is improved, and therefore the message can be displayed intuitively and efficiently.

Description

Message display method and terminal equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message display method and a terminal device.
Background
With the development of the internet, social applications have been widely popularized, and in order to promote communication between users, the social applications classify the users and construct groups, so that users having common hobbies or common characteristics can communicate with each other through the groups. The users in the group can communicate through the messages displayed in the chat session. However, when the users in the group are specified to communicate with each other, the message display effect is not good.
Disclosure of Invention
The embodiment of the application provides a message display method and terminal equipment, which can intuitively and efficiently display messages.
An embodiment of the present application provides a message display method, including:
receiving a designated recipient message of a chat session;
and displaying the message content of the message of the appointed receiver in a chat session page, wherein the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises remark content of the current message receiver to the message appointed receiver.
Correspondingly, an embodiment of the present application further provides a message display apparatus, including:
a receiving module, for receiving the message of the appointed receiving party of the chat session;
and the display module is used for displaying the message content of the message of the appointed receiver in the chat session page, wherein the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises remark content of the current message receiver to the message appointed receiver.
Optionally, in some embodiments, the display module may include an original acquisition sub-module, an acquisition sub-module, a replacement sub-module, and a display sub-module, as follows:
the original obtaining sub-module may be configured to obtain original message content of a message of an appointed recipient to be displayed, where the original message content includes a message-appointed recipient and original message-appointed recipient information indicated by the message-appointed recipient, and the original message-appointed recipient information includes a nickname of the message-appointed recipient in the chat session;
the obtaining sub-module can be used for obtaining remark content of the current message receiver to the message designated receiver based on the message of the designated receiver;
the replacing sub-module may be configured to replace the nickname with the remark content to obtain a replaced message content of the message of the designated recipient;
the display sub-module may be configured to display the replaced message content of the specified recipient message in a chat session page.
At this time, the display module may be specifically configured to write a message designated recipient character in the first field, write remark content of the current message recipient to the message designated recipient in the second field, write session message content in the third field, obtain message content of the message of the designated recipient, and display the message content of the message of the designated recipient in a chat session page.
At this time, the display sub-module may be specifically configured to perform highlighting processing on the remark content in the replaced message content of the message of the specified recipient according to the preset style, obtain the processed message content of the message of the specified recipient, and display the processed message content of the message of the specified recipient in the chat session page.
Optionally, in some embodiments, the obtaining sub-module may include a data obtaining sub-module, a relationship determining sub-module, and a remark content obtaining sub-module, as follows:
the data obtaining sub-module may be configured to obtain user relationship chain data of a current message recipient based on the specified recipient message;
the relationship determination submodule may be configured to determine a user relationship between the current message recipient and the message designated recipient based on the user relationship chain data;
the remark content obtaining submodule may be configured to obtain remark content of the current message recipient to the message designated recipient when the user relationship satisfies a preset relationship.
At this time, the remark content obtaining sub-module may be specifically configured to display a remark edit page of the message designated receiver when the user relationship satisfies a preset relationship and there is no remark content of the current message receiver to the message designated receiver, where the remark edit page includes user information of the message designated receiver, and obtain remark content that the current message receiver remarks the message designated receiver through the remark edit page.
At this time, the obtaining sub-module may be specifically configured to, when the user relationship does not satisfy the preset relationship, display original message content of the message of the specified recipient in a chat session page, where the original message content includes a message specified recipient and original message specified recipient information indicated by the message specified recipient, and the original message specified recipient information includes a nickname of the message specified recipient in the chat session.
Optionally, in some embodiments, the message display apparatus may further include an instruction receiving module and an obtaining module, as follows:
the instruction receiving module may be configured to receive an appointed received message editing instruction sent by a message sender terminal, where the appointed received message editing instruction includes an appointed message receiver identifier;
the obtaining module may be configured to obtain remark content of the current message recipient to the message-designated recipient according to the message-designated recipient identifier.
At this time, the obtaining module may be specifically configured to obtain, from the local terminal, local remark content of the current message recipient to the message-designated recipient according to the message-designated recipient identifier, obtain, from the server, server remark content of the current message recipient to the message-designated recipient according to the message-designated recipient identifier, compare the local remark content with the server remark content, obtain a comparison result, and determine, according to the comparison result, that the local remark content is the remark content of the current message recipient to the message-designated recipient.
In addition, a storage medium is further provided, where multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform steps in any one of the message display methods provided in the embodiments of the present application.
In addition, the terminal device includes a memory and a processor, where the memory stores an application program, and the processor is configured to run the application program in the memory to execute the steps in any of the message display methods provided in the embodiments of the present application.
The method and the device for receiving the message of the appointed receiver of the chat session can receive the message of the appointed receiver of the chat session, the message content of the message of the appointed receiver is displayed in a page of the chat session, the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises remark content of a current message receiver to the message appointed receiver. According to the scheme, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the remark content of the current message receiver to the appointed receiver message is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message through the remark content of the appointed receiver message by the current message receiver, and the social communication efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of a message display system provided in an embodiment of the present application;
FIG. 2 is a first flowchart of a message display method provided by an embodiment of the present application;
FIG. 3 is a second flowchart of a message display method provided by an embodiment of the present application;
FIG. 4 is a third flowchart of a message display method provided by an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a message sender performing a specified editing operation according to an embodiment of the present application;
fig. 6 is a schematic diagram of message editing performed by a message sender according to an embodiment of the present application;
fig. 7 is a schematic diagram of message sending performed by a message sender according to an embodiment of the present application;
FIG. 8 is a diagram of a message sender displaying a message of an intended recipient according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating that a message of a specified recipient is displayed with a current message recipient that is a friend of the specified recipient in the embodiment of the present application;
fig. 10 is a schematic diagram illustrating a bolded message of a designated recipient displayed with a current message recipient that is a friend of the designated recipient according to an embodiment of the present application;
fig. 11 is a schematic diagram of a current message recipient displaying a message of a specified recipient that is not a buddy with the specified message recipient according to an embodiment of the present application;
fig. 12 is a schematic diagram of remark content editing provided in an embodiment of the present application;
fig. 13 is a schematic illustration of a process of displaying remark contents provided in an embodiment of the present application;
fig. 14 is a schematic view of a first structure of a message display apparatus according to an embodiment of the present application;
fig. 15 is a second structural diagram of a message display device according to an embodiment of the present application;
fig. 16 is a third structural diagram of a message display device according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a message display method and terminal equipment.
An embodiment of the present application provides a message display system, including any of the message display apparatuses provided in the embodiments of the present application, where the message display apparatus may be specifically integrated in a terminal device, where the terminal device may include: a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
For example, referring to fig. 1, a message display system includes a message sender terminal, a current message receiver terminal, and a server, and the terminals and the server are connected through a network. The network includes network entities such as routers and gateways.
For example, when the current message receiver terminal receives a message in a chat session, the message may be detected, and when the message includes a message designated receiver, the message may be used as the message of the designated receiver. And then displaying the message content of the message of the appointed receiver in the chat session page, wherein the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises remark content of the current message receiver to the message appointed receiver.
The terminal of the message sending party can trigger the specified message receiving editing instruction according to the specified editing operation of the message sending user aiming at the message of the specified receiving party. And then sending the message of the designated receiver according to the message sending operation of the message sending user.
The server can obtain the specified received message editing instruction sent by the message sender terminal and send the specified received message editing instruction to the current message receiver terminal, so that the current message receiver terminal can obtain the remark content of the current message receiver to the specified message receiver according to the specified received message editing instruction. The server can also receive a message of a designated receiver from the terminal of the message sender and send the message of the designated receiver to the terminal of the current message receiver.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present application, and the embodiment of the present application is not limited to the system architecture shown in fig. 1, and various embodiments of the present application are proposed based on the system architecture.
The following are detailed descriptions. The numbers in the following examples are not intended to limit the order of preference of the examples.
The present embodiment will be described from the perspective of a message display apparatus, which may be integrated in a terminal, which may be a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), or the like.
As shown in fig. 2, a message display method is provided, which may be executed by a processor of a terminal, and a specific flow of the message display method may be as follows:
201. a designated recipient message for a chat session is received.
The chat session may be an application session in which the user performs communication in the social application, for example, the chat session may include a plurality of messages, and the user may perform communication in the chat session through the messages. The chat session may comprise a single person session in which the user may chat with the same user; the chat session may also include a group session by which a user may chat with multiple users in the group simultaneously.
The message of the designated recipient may be a message that designates a specific user to receive the message, for example, the message of the designated recipient in the chat session may include a message designated recipient and message designated recipient information indicated by the message designated recipient. By specifying a recipient message, a particular user may be specified in the chat session and designated for receipt of the specified recipient message.
The message designated recipient can be an identifier for characterizing that the message including the message designated recipient is a message of a designated recipient, and when the message in the chat session includes the message designated recipient, the message is indicated to have the function of designating a specific user to receive the message. The representation form of the message designated recipient can be various, for example, the representation form of the message designated recipient can be letters, numbers, symbols, images, etc., for example, the message designated recipient can be represented by "@" and the like.
The information of the designated message receiving party can be user remark information which is used for indicating a specific user and is in the designated message receiving party, and the user in the chat session can know the specific user designated by the designated message receiving party information of the designated message receiving party through the information of the designated message receiving party. For example, the information of the message designated recipient may include remark content of the current message recipient to the message designated recipient, and the current message receiving user may know that the specific user designated by the message designated recipient is the message designated recipient user through the remark content, so as to perform communication in the chat session.
The remark content can be remark description information representing that the current message receiver carries out on the specified receiver of the message. The current message receiver can set remark content such as 'Xiaoming' aiming at the message designated receiver through the cognition of the current message receiver on the message designated receiver. The current message receiver can quickly correspond the message of the appointed receiver to the message appointed receiver according to the remark content displayed in the chat session, so that the communication efficiency is improved. Generally, the remark contents set by the current message receiver to different users in chat session are different, and the current message receiver can correspond to different users according to different remark contents.
It should be noted that the remark content is obtained by being authorized by the current message receiver in a way that meets the legal and legal regulations.
In the message of the designated receiver, the message designated receiver and the message designated receiver information may appear at the same time and have a certain positional relationship, for example, the message designated receiver and the message designated receiver information may be adjacent to each other, and after the message designated receiver information is located behind the message designated receiver, the message designated receiver may be represented by "@" for example, and the remark content in the message designated receiver information may be represented by "xiaoming", and the message designated receiver information may be represented by "@ xiaoming".
In an embodiment, the message designated recipient may not include the message designated recipient in the message designated recipient, and only includes the message designated recipient information, and the current message recipient may also correspond to the corresponding message designated recipient through the message designated recipient information. In order to facilitate the user to confirm that the message is the message of the designated receiver, the message of the designated receiver can be highlighted in a preset format, for example, the remark content in the message of the designated receiver is displayed in a bold mode, or the remark content is displayed in a preset color mode, and the user can confirm that the message is the message of the designated receiver through the highlighted remark content.
In practical applications, in a chat session of a current message recipient terminal, a message of a specified recipient of the chat session may be received. For example, after the message sender terminal finishes editing the message of the designated receiver, the message of the designated receiver can be sent to the current message receiver terminal through the server, so that the current message receiver terminal can receive the message of the designated receiver in the chat session.
In an embodiment, after receiving a message, a chat session of a current message recipient terminal may further detect the received message, for example, when detecting that the message includes a message designated recipient, it may be determined that the message has a function of designating a specific user, and further determine that the message is a message of a designated recipient; when it is detected that the message does not include a message-specific recipient, it can be determined that the message does not have the effect of specifying a particular user, and the message is not a message specifying a recipient.
In an embodiment, in order to display remark content which is easier to recognize for a current message receiver in a message of an appointed receiver, so that time for a user to recognize the message of the appointed receiver is shortened, communication efficiency is improved, and remark content which needs to be displayed can be acquired when a message sender edits the message of the appointed receiver. Specifically, before the step "receiving a message of a designated recipient of a chat session", the method may further include:
receiving a specified received message editing instruction sent by a message sender terminal, wherein the specified received message editing instruction comprises a message specified receiver identifier;
and acquiring the remark content of the current message receiver to the message designated receiver according to the message designated receiver identification.
The message designated receiver identification can represent a user identification of a specific message designated receiver, the message designated receiver identification can correspond to a specific message designated receiver user, and the remark content of the current message receiver to the message designated receiver can be acquired through the message designated receiver identification. For example, the message-designated recipient identification may be a note name of the message-designated recipient in a social application, an avatar identification of the message-designated recipient, or the like.
In practical application, the current message receiver terminal may receive an appointed received message editing instruction sent by the message sender terminal, where the appointed received message editing instruction includes a message appointed receiver identifier, and then obtain remark content of the current message receiver to the message appointed receiver according to the message appointed receiver identifier. For example, after the terminal of the current message receiver detects the editing instruction of the specified received message from the terminal of the message receiver, the remark content of the current message receiver to the specified message receiver can be obtained according to the identifier of the specified message receiver.
In an embodiment, the manner of triggering the specified received message editing instruction by the message sender terminal may be various, for example, a specified operation (such as shaking, sliding, clicking, etc.) may be performed on the message sender terminal by the message sender user to perform a specified editing operation on the specified receiver message.
For example, a messaging user may log into a social application and trigger a chat session display instruction by clicking on the social application home interface. The terminal of the message sender can select the chat session needing to be displayed from a plurality of chat sessions of the main interface of the social application according to the chat session display instruction, and display the chat session. Then, the message sending user can carry out the specified editing operation aiming at the message of the specified receiver by long pressing the user head portrait of the specified receiver of the message in the chat conversation page, thereby triggering the specified received message editing instruction.
For another example, the message sending user may click on a preset area of a chat session page for a message designated recipient to perform a designated editing operation of the message designated recipient, and at this time, the message sending terminal may trigger a designated message receiving editing instruction according to the click operation of the message sending user.
In an embodiment, in order to facilitate the specified editing operation of the message of the specified receiver, a specified received message editing interface may be further provided on the chat session page of the terminal of the message sender, so that the message sending user may perform the specified editing operation through the specified received message editing interface.
The presentation form of the designated received message editing interface is various, for example, the form of an input box, an icon, a button, and the like. For example, a "message reception designation" button may be provided in a chat session page of the message sender terminal, and when the message sender user clicks the button, the message sender terminal may detect that the user performs a designated editing operation for designating a message of a receiver.
For another example, the specified received message editing interface may also be an image, a text, or the like existing in the chat session page, for example, a user avatar, a user remark, or the like of the specified receiver for the message in the chat session of the terminal of the message sender may also be used as the specified received message editing interface, and the message sender may perform the specified editing operation on the message of the specified receiver by long pressing the user avatar of the specified receiver for the message in the chat session page, or the like.
In one embodiment, the message sending user may trigger the receive-designated message editing instruction by pressing the user avatar of the message designated recipient in the chat session interface. The terminal of the message sender can acquire the remark content of the current message receiver to the message designated receiver according to the message designated receiver identification in the designated message receiving editing instruction. Then the terminal of the message sender can also display the remark content in a message editing area in a chat conversation page, so that the member of the message sender can check the appointed receiver of the appointed message, the user appointing error is avoided, and the accuracy of the user appointing and the message displaying is improved. The member of the message sender can also continue to edit the message of the appointed receiver in the message editing area, obtain the message of the appointed receiver after the editing is finished, and send the message of the appointed receiver.
In an embodiment, in order to improve accuracy of obtaining the remark content, after receiving the specified received message editing instruction, the remark content of the current message recipient to the message specified recipient may be obtained from the user remark mapping set of the current message recipient terminal according to the message specified recipient identifier in the specified received message editing instruction. For example, a user remark mapping set corresponding to the current message receiver terminal may be obtained, where the user remark mapping set includes remark content remarked by the current message receiver terminal to a plurality of users, and a user identifier corresponding to the remark content. According to the identification of the appointed receiver of the message, the remark content corresponding to the identification can be obtained from the user remark mapping set, and the remark content is the remark content remarked by the current terminal of the message receiver to the appointed receiver of the message.
In an embodiment, the remark content that the current message recipient terminal remarks a plurality of users, that is, the user remark mapping set, may be stored in the server, and may also be stored in the terminal local memory, where the terminal local memory may include at least one of a volatile memory (e.g., a memory) and a non-volatile memory (e.g., a hard disk, a storage). Therefore, for different storage modes of the user remark mapping set, when the terminal of the current message receiver acquires the remark content, the server remark content can be acquired from the server through the internet, and the local remark content can be acquired from the local storage of the terminal.
After the current message receiving user updates the remark content, due to the problems of network delay and the like, the situation that the server remark content acquired from the server is inconsistent with the local remark content acquired from the terminal locally may occur, and in order to improve the accuracy of acquiring the remark content, the server remark content and the local remark content may be acquired from the server and the terminal locally respectively and compared. Specifically, the step of acquiring remark content of the current message receiver to the message designated receiver according to the message designated receiver identifier may include:
according to the message designated receiver identification, local remark content of the current message receiver to the message designated receiver is obtained from the local terminal;
according to the message designated receiver identification, obtaining the server remark content of the current message receiver to the message designated receiver from the server;
comparing the local remark content with the server remark content to obtain a comparison result;
and determining the local remark content as the remark content of the current message receiver to the message designated receiver according to the comparison result.
The comparison result may be a comparison result representing a difference between the local remark content and the server remark content. For example, the comparison result may be that the local remark content is the same as the server remark content, or the local remark content is different from the server remark content, and so on.
In practical application, for example, the local remark content of the current message recipient to the message-designated recipient may be obtained from the local terminal according to the message-designated recipient identifier, the server remark content of the current message recipient to the message-designated recipient may be obtained from the server according to the message-designated recipient identifier, then the local remark content obtained from the local terminal may be compared with the server remark content obtained from the server to obtain a comparison result, and the local remark content may be determined as the remark content of the current message recipient to the message-designated recipient according to the comparison result. If the comparison result is that the local remark content is the same as the server remark content, the server remark content may not be updated.
If the comparison result is that the local remark content is not the same as the server remark content, at this time, the current message receiving user may adjust the local remark content, resulting in that the local remark content is not the same as the server remark content. The server remark content acquired from the server may be historical remark content which is not ready to be adjusted, and the local remark content acquired locally from the terminal may be new remark content which is already adjusted. Therefore, the server remark content can be updated to the local remark content, and the accuracy of acquiring the remark content is guaranteed.
202. Message content of a message of a designated recipient is displayed in a chat session page.
In practical application, after the current message receiver terminal receives the message of the specified receiver of the chat session, the message content of the message of the specified receiver can be displayed in the page of the chat session. For example, a message of a designated recipient including a message designated recipient and message designated recipient information indicated by the message designated recipient may be displayed in the chat session page, where the message designated recipient information may include remark content of the current message recipient to the message designated recipient.
In one embodiment, the message of the designated receiver sent by the terminal of the message sender comprises original message content, the original message content comprises a message designated receiver and original message designated receiver information indicated by the message designated receiver, and the original message designated receiver information and the message designated receiver information can be different. Therefore, the information of the appointed receiver of the original message can be replaced, and then the message of the appointed receiver is displayed, so that the remark content can be visually displayed for the current message receiving user. Specifically, the step of displaying the message content of the specified recipient message in the chat session page may include:
acquiring original message content of a message of an appointed receiving party to be displayed, wherein the original message content comprises a message appointed receiving character and original message appointed receiving party information indicated by the message appointed receiving character, and the original message appointed receiving party information comprises a nickname of the message appointed receiving party in the chat session;
acquiring remark content of a current message receiver to a message designated receiver based on the message of the designated receiver;
replacing the nickname with the remark content to obtain replaced message content of the designated receiver message;
and displaying the replaced message content of the specified receiver message in a chat session page.
The obtained message of the appointed receiving party sent by the message sending party terminal comprises the original message content which is not replaced, the original message content can comprise a nickname of the appointed receiving party of the message in the chat session, and the nickname can be different from the remark content of the current message receiving party to the appointed receiving party of the message.
In practical applications, for example, the original message content of a message of a designated recipient sent by a terminal of a message sender may be obtained, where the message of the designated recipient may be "hello @ nlingmin", and the original message content may include a nickname "nlingmin" of the designated recipient in a chat session. And then, according to the message of the appointed receiver, obtaining the remark content of the current message receiver to the appointed receiver of the message, such as 'Xiaoming'. Then the 'one shift of the Liming' in the appointed receiver message sent by the sender terminal is replaced by the 'Xiaoming' to obtain the replaced message content 'hello @ Xiaoming' of the appointed receiver message. The alternate message content "hello @ mings" for the specified recipient message may then be displayed in the chat session page. After the current message receiver sees the replaced message content 'hello @ Xiaoming' of the message of the specified receiver, the specific user specified by the message of the specified receiver can be quickly identified as 'Xiaoming' of the remark of the current message receiver, so that the communication efficiency is improved.
In an embodiment, the remark content can be highlighted, so that the current message receiving user can quickly notice the remark content, and the communication efficiency is improved. Specifically, the step of displaying the replaced message content of the specified receiver message in the chat session page may include:
highlighting the remark content in the replaced message content of the appointed receiver message according to a preset pattern to obtain the processed message content of the appointed receiver message;
and displaying the processed message content of the specified receiver message in a chat session page.
In practical applications, the remark content may be highlighted, for example, the remark content in the replaced message content of the message of the specified receiver may be bolded, or the remark content may be highlighted through a preset font color, a preset font size, a preset font style, and the like, so as to obtain the processed message content, and the processed message content is displayed in the chat session page. The processed message content of the designated receiver message comprises highlighted remark content.
In an embodiment, in order to improve the message display efficiency, the message of the designated recipient may also be displayed in a content writing manner. Specifically, the step of displaying the message content of the specified recipient message in the chat session page may include:
writing a message designated receiver in the first field, writing remark content of a current message receiver to the message designated receiver in the second field, and writing session message content in the third field to obtain the message content of the message of the designated receiver;
and displaying the message content of the specified receiver message in a chat session page.
In practical applications, for example, the message content of the message of the specified recipient to be displayed may include a first field, a second field, and a third field. Wherein, there is a positional relationship between the first field and the second field, the first field is adjacent to the second field, and the second field is located after the first field. After determining three fields of the message content, the message specified recipient can be written into the first field, such as "@" is written into the first field; writing remark content into a second field, such as writing 'Xiaoming' into the second field; the conversation message content portion of the specified recipient message is written to the third field, e.g., "hello" is written to the third field. After the content is written, the message content 'hello @ xiaoming' of the message of the specified receiver can be obtained.
In an embodiment, when there is no session message content, the message content of the specified recipient message may further include only the first field and the second field, for example, the message content of the specified recipient message may also be "@ xiaoming".
In an embodiment, the first field and the second field may also be written as an integral field, in which case, the message content of the specified recipient message may include the integral field composed of the first field and the second field, and the third field. The third field can be omitted according to actual conditions.
In an embodiment, whether to acquire remark content can be determined by acquiring the user relationship chain data, so that the information acquisition efficiency is improved. Specifically, the step "obtaining remark content of the current message receiver to the designated receiver of the message based on the designated receiver message" may include:
acquiring user relationship chain data of a current message receiver based on the specified receiver message;
determining a user relationship between the current message recipient and the designated message recipient based on the user relationship chain data;
and when the user relationship meets a preset relationship, acquiring the remark content of the current message receiver to the designated message receiver.
The user relationship chain may be a unidirectional, bidirectional, or multidirectional relationship chain between users established through a social network site, for example, a friend relationship chain established among multiple users in a social application, or a relationship chain established among multiple users paying attention to each other on a content interaction platform. The user relationship between the current message receiving user and other users can be obtained through the user relationship chain of the current message receiving party, and then the user relationship is judged.
The user relationship can represent the relationship among a plurality of users in the social application, wherein the user relationship can comprise a plurality of types and can be divided into friend relationship and non-friend relationship according to friend adding operation among the users; adding friend relationships through groups, adding friend relationships through search accounts and the like according to friend adding channels; dividing the focus operation into focus relation and focused relation according to the focus operation among users; and classifying the users into the same group relationship and the non-same group relationship according to whether the users are in the same group, and the like.
In practical applications, for example, after receiving a message of a specified recipient, user relationship chain data of a current message receiving user may be acquired, where the user relationship chain data includes user relationships between the current message receiving user and other users. And then, determining the user relationship between the current message receiver and the message designated receiver according to the user relationship chain data, and acquiring the remark content of the current message receiver to the message designated receiver when the user relationship is a preset relationship, such as a friend relationship between the current message receiver and the message designated receiver.
The friend relationship may be a user relationship that is established for some reason and occurs, is occurring, or is likely to occur in the future with the other user, and the friend relationship may be one of the user relationships.
In one embodiment, when the user relationship between the current message recipient and the designated message recipient does not satisfy the preset relationship, a nickname of the designated message recipient in the chat session may be displayed. Specifically, after the step of "determining the user relationship between the current message recipient and the specified message recipient based on the user relationship chain data", the method may further include:
and when the user relationship does not meet the preset relationship, displaying the original message content of the message of the designated receiver in a chat session page, wherein the original message content comprises a message designated receiver and original message designated receiver information indicated by the message designated receiver, and the original message designated receiver information comprises a nickname of the message designated receiver in the chat session.
In practical application, when the user relationship between the current message receiver and the designated message receiver does not satisfy the preset relationship, for example, when the user relationship between the current message receiver and the designated message receiver is not a friend relationship, the designated message receiver including the nickname of the designated message receiver in the chat session can be displayed on the chat session page. For example, the designated message recipient may set a nickname in the chat session, and when the user relationship between the current message recipient and the designated message recipient is not a buddy relationship, the nickname in the chat session may be displayed.
In an embodiment, when the user relationship between the current message receiver and the message designated receiver meets the preset relationship, but the current message receiver does not remark the message designated receiver, at this time, the remark content of the current message receiver to the message designated receiver cannot be acquired, so that the current message receiver temporarily remarks the message designated receiver and displays the remark content, thereby improving the flexibility of the message display method. Specifically, the step of acquiring remark content of the current message recipient to the designated message recipient when the user relationship satisfies a preset relationship may include:
when the user relationship meets a preset relationship and the remark content of the current message receiver to the message designated receiver does not exist, displaying a remark editing page of the message designated receiver, wherein the remark editing page comprises user information of the message designated receiver;
and acquiring the remark content of the remark of the current message receiver to the appointed message receiver through the remark editing page.
In practical applications, for example, when the user relationship between the current message recipient and the specified message recipient is a friend relationship, and the current message recipient does not make a remark to the specified message recipient, that is, there is no remark content of the current message recipient to the specified message recipient, a remark edit page of the specified message recipient may be displayed on the chat session page, where the remark edit page may include user information of the specified message recipient, such as a name and an avatar of the specified message recipient. Then, the current message receiver can perform a remark editing operation in the remark marking page, for example, remark is performed on the message designated receiver user in the remark editing page to obtain remark content, and the remark content of the new remark is obtained.
In an embodiment, the remark editing page may be a separate page or may be in a form of a popup window, and user information such as a name and an avatar of the message designated recipient may be displayed in the remark editing page, so that the current message recipient remarks the message designated recipient.
As shown in fig. 13, with this message display method, after the current message receiver terminal receives the message of the specified receiver of the chat session, the message content of the message of the specified receiver can be displayed in the page of the chat session. For example, the specified message recipient may set a remark name "plum" by itself in the social application, the content of the remark of the current message recipient to the specified message recipient may be "Xiaoming", and the nickname of the specified message recipient in the chat session may be "one-shift plum". If the current message receiver and the designated message receiver are in friend relationship, the designated message receiver in the chat session of the current message receiver can display 'Xiaoming'. The current message receiver can quickly identify that the user appointed in the chat session is the message appointed receiver according to the Xiaoming, so that the communication accuracy and efficiency are improved.
If the current message receiver and the designated message receiver are not in friend relation, the remark content of the current message receiver to the designated message receiver does not exist, and the designated message receiver in the chat session of the current message receiver can be displayed as a nickname 'Yibanluning' in the chat session; if the current message receiver and the designated message receiver are in friend relationship, but the current message receiver does not make remarks on the designated message receiver, the designated message receiver in the chat session of the current message receiver can be displayed as 'one shift of Li Ming'.
In an embodiment, if the current message recipient and the designated message recipient are in a friend relationship, but the current message recipient does not make remarks about the designated message recipient, the designated recipient message in the chat session of the current message recipient may also be displayed as "Li Ming".
As can be seen from the above, in the embodiment of the present application, a message of an appointed receiver of a chat session may be received, and the message content of the message of the appointed receiver may be displayed in a page of the chat session, where the message content includes a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information includes remark content of a current message receiver to the message appointed receiver. According to the scheme, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the remark content of the current message receiver to the appointed receiver message is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message through the remark content of the appointed receiver message by the current message receiver, and the social communication efficiency is improved.
According to the method described in the foregoing embodiment, the message display apparatus is specifically integrated in the terminal device, which is described in further detail below.
Referring to fig. 3, a specific flow of the message display method according to the embodiment of the present application may be as follows:
301. the current message recipient terminal receives a designated recipient message of the chat session.
In practical applications, for example, as shown in fig. 5, a message sending user may trigger a specified received message editing instruction at a message sending terminal through a specified editing operation of a specified received message, such as long-pressing a user avatar of a specified received message in a chat session interface, at which time, a message editing area on a chat session page may display a message specified receiver and message specified receiver information indicated by the message specified receiver according to the specified received message editing instruction. Then the message sending user can continue to edit the message aiming at the message editing area on the chat conversation page to obtain the message of the appointed receiver.
For example, as shown in fig. 5, in the group corresponding to the chat session, the nickname of the message designated recipient in the chat session is "nliming", and then after the message sending user presses the avatar of the message designated recipient in the chat session interface, the "@ nliming" is displayed in the message editing area on the chat session page. As shown in fig. 6, the messaging user may also edit the specified recipient message, which may be "hello @ li min," to the full in the message edit area.
In an embodiment, after the message sending user presses the avatar of the user of the specified receiver of the message in the chat session interface for a long time, the remark name of the specified receiver of the message to the user, such as "li ming", may be displayed in the message editing area on the chat session page, and at this time, "@ li ming" may be displayed in the message editing area.
Then, as shown in fig. 7, the message sending user may send the message of the specified recipient by clicking a message sending control on the message editing area, such as a "send" button on the message editing area, and the server may receive the message of the specified recipient, such as "hello @ class of plum", and then send the message of the specified recipient to the current message recipient terminal, where the message of the specified recipient received by the current message recipient terminal includes the original message content "class of plum" that has not been replaced.
In one embodiment, the presentation form of the messaging control on the message editing area can be various, such as an input box, an icon, a button, and the like. For example, a "send" button may be set in a message editing area of a chat session page, and when a message sending user clicks the "send" button, a message of a specified recipient may be sent, and then the server may receive the message of the specified recipient and send the message to the current message recipient terminal.
In one embodiment, as shown in fig. 8, after the message sender terminal sends the message, "hello @ a class of plumes" may be displayed in the chat session page of the message sender terminal.
302. The current message receiver terminal obtains the original message content of the appointed receiver message to be displayed.
In practical application, after receiving a message of an appointed receiver, a terminal of a current message receiver may obtain an original message content to be displayed according to the message of the appointed receiver, for example, the original message content to be displayed may include a nickname "Yinliming" of the message appointed receiver in a chat session without replacement, and the original message content of the obtained message of the appointed receiver may be "Nihello @ Yinliming".
303. The current message receiver terminal obtains the remark content of the current message receiver to the message designated receiver based on the message of the designated receiver.
In practical application, after the current message receiver terminal obtains the message of the specified receiver, the current message receiver terminal may correspond to the specific user specified by the message according to the message of the specified receiver, for example, the current message receiver terminal may obtain the identifier of the specified receiver of the message according to the message of the specified receiver. And then, a user remark mapping set corresponding to the current message receiver can be obtained, wherein the user remark mapping set comprises remark content remarked to a plurality of users by the current message receiver and a user identifier corresponding to the remark content. And then, according to the identification of the appointed receiver of the message, obtaining the remark content of the current receiver of the message to the appointed receiver of the message from the user remark mapping set corresponding to the current receiver of the message.
In an embodiment, a user relationship between a current message receiving user and a message designated receiver user can be detected, and remark content of the current message receiver to the message designated receiver is obtained according to the user relationship. For example, user relationship chain data of the current message receiving user may be acquired, where the user relationship chain data includes user relationships between the current message receiving user and multiple users. And determining the user relationship between the current message receiver and the message designated receiver according to the user relationship chain data, and when the obtained user relationship is a friend relationship, indicating that the current message receiver user and the message designated receiver user are in the friend relationship, and obtaining the remark content of the current message receiver to the message designated receiver, such as 'Xiaoming'.
In an embodiment, when the obtained user relationship is not a friend relationship, it indicates that the current message receiving user and the message designated recipient user are not a friend relationship, so that there is no remark content of the current message recipient to the message designated recipient, and at this time, a nickname of the message designated recipient in the chat session, such as "Yibangliming" may be obtained.
In an embodiment, as shown in fig. 12, when the obtained user relationship is a friend relationship, it indicates that the current message receiving user and the message designated recipient user are in a friend relationship, but the current message receiving user does not make a remark to the message designated recipient user, at this time, a remark editing page of the message designated recipient may be displayed on the chat session page, where the remark editing page may include user information such as a name, an avatar, an address, and a nickname set by the message designated recipient itself, and the remark editing page may further include a remark editing control, and the current message receiving user may edit remark content of the message designated recipient user through the remark editing control.
The current message receiving user can determine the remark content of the designated receiver user for the message through the name, head portrait, address, nickname and other user information in the remark editing page, for example, the designated receiver user of the message can be remarked as "Xiaoming". Then, the current message receiving user can edit the remark content through the remark editing control in the remark editing page, and at this time, the remark content of the current message receiver to the message designated receiver, such as "Xiaoming", can be acquired.
In an embodiment, if the current message receiving user and the message designated recipient user are in a friend relationship, but the current message receiving user does not make remarks to the message designated recipient user, and the current message receiving user refuses to make remarks to the message designated recipient user, a nickname of the message designated recipient in a chat session, such as "plum in one class", or a remark name of the message designated recipient making remarks to itself, such as "plum" and the like, may be obtained according to an actual setting condition.
304. And the current message receiver terminal replaces the nickname with the remark content to obtain the replaced message content of the specified receiver message.
In practical application, after the terminal of the current message receiver acquires the remark content of the current message receiver to the designated message receiver, the nickname in the message of the designated message receiver can be replaced by the remark content. For example, the nickname "li ming" in the message of the designated recipient may be replaced with the obtained remark content "xiaoming", so as to obtain the replaced message content "hello @ xiaoming" of the message of the designated recipient.
In an embodiment, when a friend relationship exists between a current message receiving user and a message designated receiver user and remark content is acquired, such as "xiaoming", a nickname "yinliming" in a message of the designated receiver can be replaced by the acquired remark content "xiaoming", and the replaced message content "hello @ xiaoming" of the message of the designated receiver is acquired.
In one embodiment, when the current message receiving user is not in a friend relationship with the message designated recipient user, the nickname in the message designated recipient may not be replaced. As shown in fig. 11, at this time, "hello @ one shift of lumin" may be displayed on the current message recipient terminal.
In an embodiment, when the current message receiving user and the message designated receiver user are in a friend relationship but do not acquire remark content, the nickname in the message designated receiver may not be replaced.
In an embodiment, when a friend relationship exists between a current message receiving user and a message designated receiving party user but the remark content is not obtained, a nickname 'li ming' in the message designated receiving party can be replaced by the remark name 'li ming' of the message designated receiving party user to the user, and the replaced message content 'niuh @ li ming' of the message designated receiving party is obtained.
305. The current message receiver terminal displays the replaced message content of the appointed receiver message in the chat session page.
In practical applications, for example, as shown in fig. 9, the current message recipient terminal may display the replaced message content of the specified recipient message in a chat session page, such as "hello @ mingmen".
In an embodiment, in order to prompt the current message receiving user, the message is a message of a designated recipient, the current message recipient terminal may further perform highlighting processing on the remark content according to a preset pattern, for example, processing the remark content "xiaoming" with a preset color, or processing the remark content with a preset font size, or processing the remark content with a preset font, and the like. And displaying the processed message content of the specified recipient message. As shown in fig. 10, "xiaoming" may be subjected to a thickening process.
In an embodiment, the message of the designated recipient may also be displayed by means of content writing, for example, the message content of the message of the designated recipient may include a first field, a second field and a third field, and the message designated recipient may be written into the first field, the remark content may be written into the second field, and the session message content may be written into the third field, respectively. For example, "@" may be written in the first field, xiao ming "may be written in the second field, and hello" may be written in the third field, so as to obtain the message content "hello @ xiao ming" of the message of the specified recipient, and display the message content of the message of the specified recipient.
As can be seen from the above, in the embodiment of the application, the specified receiver message of the chat session may be received through the current message receiver terminal, the original message content of the specified receiver message to be displayed may be obtained, the remark content of the current message receiver to the specified receiver message may be obtained based on the specified receiver message, the nickname may be replaced with the remark content, the replaced message content of the specified receiver message may be obtained, and the replaced message content of the specified receiver message may be displayed in the chat session page. According to the scheme, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the remark content of the current message receiver to the appointed receiver message is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message through the remark content of the appointed receiver message by the current message receiver, and the social communication efficiency is improved.
According to the method described in the foregoing embodiment, the message display apparatus is specifically integrated in the terminal device, which is described in further detail below.
Referring to fig. 4, a specific flow of the message display method according to the embodiment of the present application may be as follows:
401. and the current message receiver terminal receives a specified received message editing instruction sent by the message sender terminal.
In practical applications, for example, the message sending terminal may trigger the specified message receiving editing instruction according to the specified editing operation of the message sending user, such as pressing the user avatar of the specified receiving party of the message in the chat session interface. At this time, the server may receive a specified received message edit instruction from the message sender terminal, and then the server may transmit the specified received message edit instruction to the current message receiver terminal. Wherein, the specified received message editing instruction may include an identifier of the specified receiver of the message.
402. And the current message receiver terminal acquires the remark content of the current message receiver to the message designated receiver according to the message designated receiver identifier.
In practical application, after the terminal of the current message receiver receives the specified received message editing instruction, the terminal of the current message receiver can determine the specified receiver of the message required to be specified according to the identifier of the specified receiver of the message in the specified received message editing instruction, and obtain the remark content corresponding to the identifier of the specified receiver of the message from the user remark mapping set of the current message receiver according to the identifier of the specified receiver of the message, wherein the remark content is the remark content of the current message receiver to the specified receiver of the message, such as 'Xiaoming'.
In an embodiment, because the user remark mapping set of the current message receiver may be stored in the server or may be stored in the terminal local storage, for different storage modes of the remark content, when the current message receiver terminal acquires the remark content, the user remark mapping set may be acquired from the server through the internet, or may be acquired from the terminal local storage.
In practical application, the current message receiver terminal may obtain the local remark content of the current message receiver to the message designated receiver from the local terminal according to the message designated receiver identifier, and may also obtain the server remark content of the current message receiver to the message designated receiver from the server according to the message designated receiver identifier, and then compare the local remark content obtained from the local terminal with the server remark content obtained from the server to obtain a comparison result, and if the comparison result is that the local remark content is the same as the server remark content, at this time, the server remark content may not be updated.
If the comparison result shows that the local remark content is different from the server remark content, at this time, the current message receiving user may adjust the local remark content, so that the local remark content is different from the server remark content, the server remark content may be historical remark content which has not been adjusted, and the local remark content acquired locally by the terminal may be new remark content which has been adjusted. Therefore, the server remark content can be updated to be the local remark content, and the local remark content is used as the remark content of the current message receiver to the designated receiver of the message.
403. The current message recipient terminal receives a designated recipient message of the chat session.
In practical applications, a message sending user of a message sender terminal may send a message to a specified recipient by clicking a "send" button on a chat session page. After receiving the message of the designated receiver, the server can send the message of the designated receiver to the terminal of the current message receiver. After the current message receiver terminal obtains the remark content of the current message receiver to the message designated receiver, the obtained remark content can be written into the message of the designated receiver to obtain the message of the designated receiver including the remark content, such as 'hello @ xiaoming'.
404. The current message recipient terminal displays the message content of the intended recipient message in a chat session page.
In practical application, after receiving an appointed receiver message of a chat session, a current message receiver terminal can directly display the acquired appointed receiver message in a chat session page of the current message receiver terminal, for example, "hello @ xiaoming" can be displayed in the chat session page of the current message receiver terminal.
As can be seen from the above, in the embodiment of the present application, the specified received message editing instruction sent by the message sender terminal can be received by the current message receiver terminal, the remark content of the current message receiver to the message specified receiver is obtained according to the message specified receiver identifier, the specified receiver message of the chat session is received, and the message content of the specified receiver message is displayed in the chat session page. According to the scheme, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the remark content of the current message receiver to the appointed receiver message is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message through the remark content of the appointed receiver message by the current message receiver, and the social communication efficiency is improved.
In order to better implement the above method, an embodiment of the present application may further provide a message display apparatus, where the message display apparatus may be specifically integrated in a terminal device, and the terminal device may include a server, a terminal, and the like, where the terminal may include: a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
For example, as shown in fig. 14, the message display apparatus may include a receiving module 141 and a display module 142, as follows:
a receiving module 141 for receiving a message of a designated recipient of the chat session;
a display module 142, configured to display the message content of the message of the specified recipient in the chat session page, where the message content includes a message specified recipient and message specified recipient information indicated by the message specified recipient, and the message specified recipient information includes remark content of the current message recipient to the message specified recipient.
In an embodiment, referring to fig. 15, the display module 142 may include:
an original obtaining sub-module 1421, configured to obtain original message content of a message of an appointed recipient to be displayed, where the original message content includes a message appointed recipient and original message appointed recipient information indicated by the message appointed recipient, and the original message appointed recipient information includes a nickname of the message appointed recipient in the chat session;
an obtaining sub-module 1422, configured to obtain remark content of the current message receiver to the message-designated receiver based on the message of the designated receiver;
a replacing sub-module 1423, configured to replace the nickname with the remark content, to obtain replaced message content of the message of the designated recipient;
the display sub-module 1424 is configured to display the replaced message content of the specified recipient message in the chat session page.
In an embodiment, the display module 142 may be specifically configured to:
writing a message designated receiver in the first field, writing remark content of a current message receiver to the message designated receiver in the second field, and writing session message content in the third field to obtain the message content of the message of the designated receiver;
and displaying the message content of the specified receiver message in a chat session page.
In an embodiment, the display sub-module 1424 may be specifically configured to:
highlighting the remark content in the replaced message content of the appointed receiver message according to a preset pattern to obtain the processed message content of the appointed receiver message;
and displaying the processed message content of the specified receiver message in a chat session page.
In an embodiment, the obtaining sub-module 1422 may include:
a data obtaining sub-module 14221, configured to obtain, based on the specified recipient message, user relationship chain data of the current message recipient;
a relationship determining submodule 14222, configured to determine, based on the user relationship chain data, a user relationship between the current message recipient and the message designated recipient;
a remark content obtaining sub-module 14223, configured to obtain, when the user relationship satisfies a preset relationship, remark content of the current message recipient to the message-designated recipient.
In an embodiment, the remark content obtaining sub-module 14223 may be specifically configured to:
when the user relation meets a preset relation and the remark content of the current message receiver to the message designated receiver does not exist, displaying a remark editing page of the message designated receiver, wherein the remark editing page comprises the user information of the message designated receiver;
and acquiring the remark content of the current message receiver remarking the message designated receiver through the remark editing page.
In an embodiment, the obtaining sub-module 1422 may specifically be configured to:
and when the user relationship does not meet the preset relationship, displaying the original message content of the message of the designated receiver in a chat session page, wherein the original message content comprises a message designated receiver and original message designated receiver information indicated by the message designated receiver, and the original message designated receiver information comprises a nickname of the message designated receiver in the chat session.
In an embodiment, referring to fig. 16, the message display apparatus may further include:
the instruction receiving module 143 is configured to receive an appointed received message editing instruction sent by a message sender terminal, where the appointed received message editing instruction includes an appointed message receiver identifier;
the obtaining module 144 is configured to obtain remark content of the current message recipient to the message designated recipient according to the message designated recipient identifier.
In an embodiment, the obtaining module 144 may specifically be configured to:
according to the message designated receiver identification, local remark content of the current message receiver to the message designated receiver is obtained from the local terminal;
according to the message designated receiver identification, obtaining the server remark content of the current message receiver to the message designated receiver from the server;
comparing the local remark content with the server remark content to obtain a comparison result;
and determining the local remark content as the remark content of the current message receiver to the message designated receiver according to the comparison result.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the message display apparatus of the present embodiment receives the message of the designated recipient of the chat session through the receiving module 141, and displays the message content of the message of the designated recipient in the page of the chat session through the display module 142, where the message content includes the message designated recipient and the message designated recipient information indicated by the message designated recipient, and the message designated recipient information includes the remark content of the current message recipient to the message designated recipient. According to the scheme, when the designated receiver message sent by the message sender terminal is detected, the designated receiver message comprising the remark content of the current message receiver to the designated receiver message is displayed in the chat session of the current message receiver, so that the designated receiver message can be quickly identified by the current message receiver through the remark content of the designated receiver message by the current message receiver, the social communication efficiency is improved, and therefore, the scheme can visually and efficiently display information.
The embodiment of the application also provides a terminal device, and the terminal device can integrate any one of the message display devices provided by the embodiment of the application.
For example, as shown in fig. 17, a schematic structural diagram of a terminal device according to an embodiment of the present application is shown, specifically:
the terminal device may include components such as a processor 171 of one or more processing cores, memory 172 of one or more computer-readable storage media, a power supply 173, and an input unit 174. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 17 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 171 is a control center of the terminal device, connects various parts of the entire terminal device with various interfaces and lines, performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 172 and calling data stored in the memory 172. Alternatively, the processor 171 may include one or more processing cores; preferably, the processor 171 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 171.
The memory 172 may be used to store software programs and modules, and the processor 171 executes various functional applications and data processing by operating the software programs and modules stored in the memory 172. The memory 172 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 172 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 172 may also include a memory controller to provide the processor 171 with access to the memory 172.
The terminal device further includes a power supply 173 for supplying power to each component, and preferably, the power supply 173 may be logically connected to the processor 171 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 173 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal device may further include an input unit 174, and the input unit 174 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user setting and function control.
Although not shown, the terminal device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 171 in the terminal device loads the executable file corresponding to the process of one or more application programs into the memory 172 according to the following instructions, and the processor 171 runs the application programs stored in the memory 172, thereby implementing various functions as follows:
receiving a message of a designated receiver of the chat session, and displaying the message content of the message of the designated receiver in a page of the chat session, wherein the message content comprises a message designated receiver and message designated receiver information indicated by the message designated receiver, and the message designated receiver information comprises remark content of the current message receiver to the message designated receiver.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the terminal device in the embodiment of the present application may receive a message of an appointed recipient of a chat session, and display, in a page of the chat session, message content of the message of the appointed recipient, where the message content includes a message appointed recipient and message appointed recipient information indicated by the message appointed recipient, and the message appointed recipient information includes remark content of a current message recipient to the message appointed recipient. According to the scheme, when the appointed receiver message sent by the message sender terminal is detected, the appointed receiver message including the remark content of the current message receiver to the appointed receiver message is displayed in the chat session of the current message receiver, so that the current message receiver can rapidly identify the appointed receiver message through the remark content of the appointed receiver message by the current message receiver, and the social communication efficiency is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the message display methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
receiving a message of an appointed receiver of the chat session, displaying the message content of the message of the appointed receiver in a page of the chat session, wherein the message content comprises a message appointed receiver and message appointed receiver information indicated by the message appointed receiver, and the message appointed receiver information comprises remark content of the current message receiver to the message appointed receiver.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any message display method provided in the embodiments of the present application, beneficial effects that can be achieved by any message display method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The message display method and the terminal device provided in the embodiments of the present application are described in detail above, and specific examples are applied in this document to explain the principles and embodiments of the present application, and the description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A message display method, comprising:
receiving an appointed receiver message of a chat session, wherein the appointed receiver message is a message for receiving a message by an appointed receiver of the message, and the chat session comprises a group session;
acquiring original message content of a message of an appointed receiving party to be displayed, wherein the original message content comprises a message appointed receiving character and original message appointed receiving party information indicated by the message appointed receiving character, and the original message appointed receiving party information comprises a nickname of the message appointed receiving party in the chat session;
acquiring remark content of a current message receiver to a message designated receiver based on the message of the designated receiver, wherein the remark content represents remark description information of the current message receiver to the message designated receiver, and the remark content is generated according to the cognition of the current message receiver to the message designated receiver;
replacing the nickname with the remark content to obtain replaced message content of the message of the designated receiver;
and displaying the replaced message content of the specified receiver message in a chat session page.
2. The message display method of claim 1, wherein obtaining remark content of the current message recipient to the message designated recipient based on the message of the designated recipient comprises:
acquiring user relationship chain data of a current message receiver based on the specified receiver message;
determining a user relationship between the current message recipient and the designated message recipient based on the user relationship chain data;
and when the user relationship meets a preset relationship, acquiring the remark content of the current message receiver to the designated message receiver.
3. The message display method of claim 1, wherein the replaced message content of the specified recipient message comprises a first field, a second field located after the first field, and a third field;
the replacing the nickname with the remark content to obtain the replaced message content of the message of the designated receiver comprises the following steps:
and writing a message designated receiver in the first field, writing remark content of the current message receiver to the message designated receiver in the second field, and writing session message content in the third field to obtain the replaced message content of the message of the designated receiver.
4. The message display method of claim 1, wherein displaying the replaced message content of the specified recipient message in a chat session page comprises:
highlighting the remark content in the replaced message content of the appointed receiver message according to a preset pattern to obtain the processed message content of the appointed receiver message;
and displaying the processed message content of the specified receiver message in a chat session page.
5. The message display method according to claim 2, characterized in that the method further comprises:
and when the user relationship does not meet the preset relationship, displaying the original message content of the message of the designated receiver in a chat session page, wherein the original message content comprises a message designated receiver and original message designated receiver information indicated by the message designated receiver, and the original message designated receiver information comprises a nickname of the message designated receiver in the chat session.
6. The message display method according to claim 2, wherein when the user relationship satisfies a preset relationship, acquiring remark content of the current message recipient to the message designated recipient includes:
when the user relationship meets a preset relationship and the remark content of the current message receiver to the message designated receiver does not exist, displaying a remark editing page of the message designated receiver, wherein the remark editing page comprises user information of the message designated receiver;
and acquiring the remark content of the remark of the current message receiver to the appointed message receiver through the remark editing page.
7. The message display method of claim 1, wherein prior to receiving the message for the designated recipient of the chat session, further comprising:
receiving a specified received message editing instruction sent by a message sender terminal, wherein the specified received message editing instruction comprises a message specified receiver identifier;
and acquiring the remark content of the current message receiver to the message designated receiver according to the message designated receiver identification.
8. The message display method according to claim 7, wherein obtaining remark content of the current message recipient to the message designated recipient according to the message designated recipient identifier comprises:
according to the message designated receiver identification, local remark content of the current message receiver to the message designated receiver is obtained from the local terminal;
according to the message designated receiver identification, obtaining the server remark content of the current message receiver to the message designated receiver from the server;
comparing the local remark content with the server remark content to obtain a comparison result;
and determining the local remark content as the remark content of the current message receiver to the message designated receiver according to the comparison result.
9. A terminal device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operation of the message display method according to any one of claims 1 to 8.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the message display method according to any one of claims 1 to 8.
CN201910632069.9A 2019-07-12 2019-07-12 Message display method and terminal equipment Active CN112291420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910632069.9A CN112291420B (en) 2019-07-12 2019-07-12 Message display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910632069.9A CN112291420B (en) 2019-07-12 2019-07-12 Message display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN112291420A CN112291420A (en) 2021-01-29
CN112291420B true CN112291420B (en) 2022-09-09

Family

ID=74418593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910632069.9A Active CN112291420B (en) 2019-07-12 2019-07-12 Message display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN112291420B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285868B (en) * 2021-04-29 2022-10-04 上海掌门科技有限公司 Task generation method, device and computer readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861904A (en) * 2019-02-19 2019-06-07 天津字节跳动科技有限公司 Nametags display methods and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404251A (en) * 2011-12-18 2012-04-04 上海量明科技发展有限公司 Realization method, client and system for instant messaging with remarking function
US9590929B2 (en) * 2013-04-11 2017-03-07 International Business Machines Corporation Directed message notification in chat sessions
CN104753757B (en) * 2013-12-30 2018-11-06 北京新媒传信科技有限公司 message display method and system
CN105978794A (en) * 2016-06-17 2016-09-28 中国联合网络通信集团有限公司 Method and device for replacing note name in instant messaging platform address book

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861904A (en) * 2019-02-19 2019-06-07 天津字节跳动科技有限公司 Nametags display methods and device

Also Published As

Publication number Publication date
CN112291420A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US9406049B2 (en) Electronic device and method for updating message recipients based on message body indicators
US9171291B2 (en) Electronic device and method for updating message body content based on recipient changes
EP2814212B1 (en) Method and apparatus for adding friend, and storage medium
EP2658189B1 (en) Electronic device and method for updating message body content based on recipient changes
US20150365488A1 (en) Aggregating endpoint capabilities for a user
EP2942910A1 (en) Information display method for instant communication tool, and user terminal
CN111669311A (en) Communication method, communication device, communication system, electronic equipment and readable storage medium
CN113300938B (en) Message sending method and device and electronic equipment
US8296416B2 (en) Representing aggregated rich presence information
CN102984050A (en) Method, client and system for searching voices in instant messaging
CN113395202B (en) Session management method, device, computer equipment and storage medium
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
CN111130986B (en) Message sending method, device, equipment and storage medium
CN112947807A (en) Display method and device and electronic equipment
US11281761B2 (en) Method and system for using a plurality of accounts in an instant messaging application
CN110120908B (en) Group message processing method and device and server
CN114518923A (en) Message sending method and device and electronic equipment
CN108616443A (en) Associated person information methods of exhibiting and device
CN112291420B (en) Message display method and terminal equipment
CN109525488A (en) Instant message dissemination method, device, terminal, server and storage medium
CN113411193B (en) Message sending method, device, electronic equipment and readable storage medium
CN113014404B (en) Message transmission method and device, server and second client
CN113079086A (en) Message transmitting method, message transmitting device, electronic device, and storage medium
CN111857463A (en) New message reminding method and device, electronic equipment and medium
EP2658190B1 (en) Electronic device and method for updating message recipients based on message body indicators

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant