CN112968828A - Chat message display method, device, equipment and storage medium - Google Patents

Chat message display method, device, equipment and storage medium Download PDF

Info

Publication number
CN112968828A
CN112968828A CN202110327400.3A CN202110327400A CN112968828A CN 112968828 A CN112968828 A CN 112968828A CN 202110327400 A CN202110327400 A CN 202110327400A CN 112968828 A CN112968828 A CN 112968828A
Authority
CN
China
Prior art keywords
chat
message
chat message
content
message content
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.)
Pending
Application number
CN202110327400.3A
Other languages
Chinese (zh)
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.)
Lianren Healthcare Big Data Technology Co Ltd
Original Assignee
Lianren Healthcare Big Data Technology 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 Lianren Healthcare Big Data Technology Co Ltd filed Critical Lianren Healthcare Big Data Technology Co Ltd
Priority to CN202110327400.3A priority Critical patent/CN112968828A/en
Publication of CN112968828A publication Critical patent/CN112968828A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for displaying chat messages. The method comprises the following steps: when the second client receives the message code sent by the server, analyzing the message code to obtain chat message data; the chat message data comprises a first chat message content sent to a server by a first client, message receiving time corresponding to the first chat message content and a chat object identifier; respectively determining a display sequence and a display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier; and outputting and displaying the first chat message content based on the display sequence and the display position. The technical scheme of the embodiment solves the problem of repeated access to the server, and improves the processing efficiency of the client to the chat message data.

Description

Chat message display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet communication, in particular to a method, a device, equipment and a storage medium for displaying chat messages.
Background
With the development of internet technology, instant messaging software becomes a communication method for people to communicate daily, and is generally performed between one client and one client or between one client and a plurality of clients. Specifically, the client obtains the text content of the message sent by other clients by accessing the transit server. However, if the client wants to acquire other message data, such as message sending time, the client needs to repeatedly access the transit server, thereby reducing the processing efficiency of the client on the message data.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for displaying chat messages, which are used for improving the processing efficiency of a client on message data.
In a first aspect, an embodiment of the present invention provides a method for displaying a chat message, where the method includes:
when the second client receives the message code sent by the server, analyzing the message code to obtain chat message data; the chat message data comprises a first chat message content sent to a server by a first client, message receiving time corresponding to the first chat message content and a chat object identifier;
respectively determining a display sequence and a display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier;
and outputting and displaying the first chat message content based on the display sequence and the display position.
In a second aspect, an embodiment of the present invention further provides a device for displaying a chat message, where the device includes:
the chat message data determining module is used for analyzing the message code to obtain chat message data when the second client receives the message code sent by the server; the chat message data comprises a first chat message content sent to a server by a first client, message receiving time corresponding to the first chat message content and a chat object identifier;
a display sequence determining module, configured to determine, based on the message receiving time and the chat object identifier, a display sequence and a display position corresponding to the first chat message content, respectively;
and the first chat message content display module is used for outputting and displaying the first chat message content based on the display sequence and the display position.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the chat message display methods referred to above.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any of the above chat message display methods.
The embodiment of the invention analyzes the message code to obtain the chat message data by receiving the message code sent by the server, and particularly, the chat message data comprises first chat message content, message receiving time and a chat object identifier, the display sequence and the display position corresponding to the first chat message content are determined based on the message receiving time and the chat object identifier, and the first chat message content is output and displayed based on the display sequence and the display position, so that the problem that the server needs to be repeatedly accessed when the chat message is displayed is solved, and the processing efficiency of the client on the message data is improved.
Drawings
Fig. 1 is a flowchart of a method for displaying chat messages according to an embodiment of the present invention;
fig. 2 is a flowchart of a chat message display method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a display device for chat messages according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a chat message display method according to an embodiment of the present invention, where the method is applicable to a case of processing chat message data, and especially applicable to a case of displaying chat messages, and the method may be executed by a chat message display apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a terminal device, and the terminal device may be, for example, an intelligent terminal such as a mobile terminal, a notebook computer, a desktop computer, a server, and a tablet computer. The method specifically comprises the following steps:
and S110, when the second client receives the message code sent by the server, analyzing the message code to obtain chat message data.
Specifically, the server encodes the received chat message data to obtain a message code, and the second client analyzes the message code to obtain the chat message data. For example, the server may encrypt and encode the chat message data to obtain a message code, and the second client may decrypt and analyze the message code to obtain the chat message data. In this embodiment, the second client only needs to receive the message code once, so as to obtain the chat message data.
In this embodiment, the chat message data includes a first chat message content sent by the first client to the server, a message receiving time corresponding to the first chat message content, and a chat object identifier.
Specifically, the first client is a client performing single chat operation with the second client. For example, the first chat message content may be text, emoticon, file, or the like, and the message receiving time may be a time when the first client transmits the first chat message content or a time when the server receives the first chat message content transmitted by the first client. The chat object identifier may be used to distinguish a chat object of a single chat, and illustratively, the chat object identifier corresponding to the first client is 1, and the chat object identifier corresponding to the second client is 0. The specific identification form of the chat object identification is not limited herein.
On the basis of the foregoing embodiment, optionally, the method further includes: and acquiring second chat message content input by the user, and sending the second chat message content to the server so that the server takes the current time corresponding to the received second chat message content as the message receiving time.
In this embodiment, the message receiving time is a time when the server receives the content of the first chat message sent by the first client. The method has the advantages that when the chat message content received by the server is frequent, the time when the server receives the chat message content is taken as the message receiving time, the consistency of the display sequence of the chat message content in the first client or the second client can be ensured, and the situation that the user is misled due to the fact that the display sequence is inconsistent is avoided.
And S120, respectively determining the display sequence and the display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier.
In one embodiment, the first chat message contents are sorted based on the message receiving time corresponding to at least two first chat message contents respectively, and the display sequence corresponding to each first chat message content is determined. In another embodiment, the first chat message content and the second chat message content are sorted based on the message receiving time corresponding to the at least one first chat message content and the at least one second chat message content, and the display sequence corresponding to each first chat message content is determined. And the second chat message content is the chat message content edited by the second client. Specifically, based on the chat object identifier, the display position corresponding to the content of the first chat message is determined. Illustratively, when the chat object is identified as 1, the first chat message content is displayed on the left side of the chat interface, and when the chat message is identified as 0, the first chat message content is displayed on the right side of the chat interface.
In another embodiment, optionally, the method further comprises: and determining the display state of the chat dialog box corresponding to the content of the first chat message based on the chat object identification. Wherein the display state includes, but is not limited to, a display color and/or a display shape of the chat dialog. And when the chat object identifier is 1, setting the display color of the chat dialog box corresponding to the first chat message content as gray and the display shape as oval, and when the chat message identifier is 0, setting the display color of the chat dialog box corresponding to the first chat message content as blue and the display shape as rectangular. The specific display state of the chat dialog box is not limited herein.
And S130, outputting and displaying the content of the first chat message based on the display sequence and the display position.
On the basis of the foregoing embodiment, optionally, the method further includes: outputting and displaying the message receiving time based on a first preset time display format; and when a time switching instruction input by a user is detected, outputting and displaying the message receiving time based on a second preset time display format.
In one embodiment, optionally, the message receiving time and the first chat message content are displayed correspondingly, that is, one piece of first chat message content corresponds to one message receiving time. The advantage of setting up like this is, make things convenient for the user to look over the time that every chat message content corresponds.
In another embodiment, optionally, the current message receiving time corresponding to the first chat message content to be currently displayed is compared with the previous message receiving time of the previous chat message content, and if the time difference between the current message receiving time and the previous message receiving time is greater than a preset time threshold, the current message receiving time and the first chat message content to be currently displayed are correspondingly displayed; and if the time difference between the two is less than or equal to the preset time threshold, outputting and displaying the content of the first chat message to be displayed currently. Specifically, the last chat message content may be the first chat message content already output and displayed, the second chat message content already output and displayed, or the first chat message content not output and displayed. The advantage of setting up like this has both avoided appearing the display redundancy on the time, causes the display interface confusion, can satisfy the demand that the user looked over the display time that the longer chat message content of time interval corresponds again.
For example, the first preset time display format may be a solar calendar format, such as 2021, 4 months, 4 days, 8: 00. The second predetermined time display format may be a lunar calendar format, such as Xinchou year Qingming festival 8:00 or Xinchou year February twenty-three 8: 00. Specifically, the second preset time display format may replace the specific lunar calendar time according to the specific lunar calendar festival, for example, the second preset time display format may replace the second February Twenty to the Qingming festival.
For example, the time switching instruction may be generated based on a double-click operation, a single-click operation, or a long-press operation input by the user based on the display time on the display interface. The user operation corresponding to the time switching instruction generation is not specifically limited, and the user can perform personalized setting according to actual requirements.
The advantage of this arrangement is that the flexibility of displaying the message receipt time is improved, improving the user experience.
According to the technical scheme, the message code is analyzed to obtain the chat message data by receiving the message code sent by the server, specifically, the chat message data comprises the first chat message content, the message receiving time and the chat object identifier, the display sequence and the display position corresponding to the first chat message content are determined based on the message receiving time and the chat object identifier, and the first chat message content is output and displayed based on the display sequence and the display position, so that the problem that the server needs to be repeatedly accessed when the chat message is displayed is solved, and the processing efficiency of the client to the message data is improved.
Example two
Fig. 2 is a flowchart of a chat message display method according to a second embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the foregoing embodiment. Optionally, the chat message data further includes at least one of a message type, a chat object number, and a message status identifier.
The specific implementation steps of this embodiment include:
s210, when the second client receives the message code sent by the server, the message code is analyzed to obtain chat message data.
In this embodiment, the chat message content includes a first chat message content sent by the first client to the server, a message receiving time corresponding to the first chat message content, a chat object identifier, a message type, a chat object number, and a message status identifier.
S220, respectively determining a display sequence and a display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier.
And S230, outputting and displaying the content of the first chat message based on the display sequence and the display position.
On the basis of the foregoing embodiment, optionally, the method further includes: acquiring at least one message state identifier corresponding to the output and displayed first chat message content, and sending the message state identifier to a server; the message state identifier is used for representing the reading state of the content of the first chat message.
Illustratively, when the content of the first chat message is read, the read status of the content of the first chat message is read, the message status flag may be 1, and when the content of the first chat message is not read, the read status of the content of the first chat message is unread, the message status flag may be 0. The specific identification form of the message status identification is not limited herein.
S240, when a message query instruction input by a user is detected, determining query chat message content corresponding to the message query instruction based on the query message type corresponding to the message query instruction and the message type corresponding to the output displayed chat message content, and outputting and displaying the query chat message content.
Specifically, the message query instruction includes query message content and/or query message type.
In one embodiment, the query message content is optionally a specific text content, such as "today". When the message query contains only query message content, default query message types corresponding to the message query include, but are not limited to, text content, documents, business card messages, geographic location, red envelope messages, transfer messages, and the like. Specifically, the chat message content corresponding to the query message type in the output and displayed chat message content is used as the initial chat message content, and the query message content corresponding to the message query instruction is determined in the initial chat message content based on the query message content.
In another embodiment, when the message query instruction only contains the query message type, specifically, the chat message content corresponding to the query message type in the output displayed chat message content is used as the query message content corresponding to the message query instruction.
In another embodiment, when the message query instruction includes query message content and a query message type, specifically, chat message content corresponding to the query message type in the output displayed chat message content is used as initial chat message content, and the query message content corresponding to the message query instruction is determined in the initial chat message content based on the query message content.
In this embodiment, the chat message content includes a first chat message content and a second chat message content obtained by the second client and input by the user.
In the message code, for example, the code corresponding to the message type may be represented by a two-level system character string, for example, a text message is 0000, an emoticon message is 0001, a picture message is 0010, an audio message is 0011, a file message is 0100, a business card message is 0101, a geo-location message is 0110, a red-packet message is 0111, and the like. Specifically, when the message types are more, the coding requirement of the message types can be met by increasing the number of bits of the secondary system character string.
And S250, when an object information query instruction input by a user is detected, obtaining chat object information corresponding to the chat object number in the local database based on the chat object number in the object information query instruction, and outputting and displaying the chat object information.
In this embodiment, the chat object information in the local database is downloaded from the server in advance based on the chat object number. Specifically, after analyzing the message code to obtain the current chat object number, judging whether chat object information matched with the current chat object number exists in the local database, if not, sending a download request containing the current chat object number to the server, so that the server sends the chat object information corresponding to the current chat object number to the second client.
Specifically, the chat object number is used to identify different chat objects. For example, assuming that the first client communicating with the second client includes a first client a and a first client B, and each first client corresponds to a different registered user, the "a" and the "B" may be chat object numbers corresponding to the first clients respectively. The chat object number may also be, for example, an IP (Internet Protocol) Address or a MAC (Media Access Control Address) Address corresponding to the first client. The specific identification form of the chat object number is not limited here.
Exemplary chat object information includes, but is not limited to, name, age (year and month of birth), gender, native place, nationality, highest school calendar, political aspect, graduation school, specialty, educational background, learning experience, foreign language and computer application level, major listing of the university stage, subsidiary and choice subjects, achievement, expertise, foreign language and computer application level, personal practice, personal achievement awards, personal traits and personality ratings, expertise, interests, personality, constellation, contact, signature, personality tags, and other remark information, among others.
According to the technical scheme, the received message code sent by the server is analyzed to obtain a plurality of chat message data such as the first chat message content sent by the first client to the server, the message receiving time corresponding to the first chat message content, the chat object identifier, the message type, the chat object number and the message state identifier, different message data processing operations are performed on different chat message data, the problem that the server needs to be accessed for multiple times according to different service requirements is solved, and the processing efficiency of the client on different chat message data is further improved.
EXAMPLE III
Fig. 3 is a schematic diagram of a chat message display device according to a third embodiment of the present invention. The embodiment is applicable to the case of processing chat message data, and is particularly applicable to the case of displaying chat messages, the apparatus can be implemented in a software and/or hardware manner, and the apparatus can be configured in a terminal device. The display device of the chat message comprises: a chat message data determination module 310, a display order determination module 320, and a first chat message content display module 330.
The chat message data determining module 310 is configured to, when the second client receives a message code sent by the server, analyze the message code to obtain chat message data; the chat message data comprises a first chat message content sent to the server by the first client, message receiving time corresponding to the first chat message content and a chat object identifier;
a display sequence determining module 320, configured to determine, based on the message receiving time and the chat object identifier, a display sequence and a display position corresponding to the content of the first chat message, respectively;
and a first chat message content display module 330, configured to output and display the first chat message content based on the display order and the display position.
According to the technical scheme, the message code is analyzed to obtain the chat message data by receiving the message code sent by the server, specifically, the chat message data comprises the first chat message content, the message receiving time and the chat object identifier, the display sequence and the display position corresponding to the first chat message content are determined based on the message receiving time and the chat object identifier, and the first chat message content is output and displayed based on the display sequence and the display position, so that the problem that the server needs to be repeatedly accessed when the chat message is displayed is solved, and the processing efficiency of the client to the message data is improved.
On the basis of the above technical solution, optionally, the chat message data further includes at least one of a message type, a chat object number, and a message status identifier.
On the basis of the above technical solution, optionally, the apparatus further includes:
the chat message content query module is used for determining query chat message content corresponding to the message query instruction and outputting and displaying the query chat message content based on the query message type corresponding to the message query instruction and the message type corresponding to the output and displayed chat message content when a message query instruction input by a user is detected; the chat message content comprises a first chat message content and a second chat message content which is acquired by the second client and input by the user.
On the basis of the above technical solution, optionally, the apparatus further includes:
the chat object information query module is used for acquiring chat object information corresponding to the chat object number in the local database based on the chat object number in the object information query instruction when the object information query instruction input by the user is detected, and outputting and displaying the chat object information; wherein, the chat object information in the local database is downloaded from the server based on the chat object number in advance.
On the basis of the above technical solution, optionally, the apparatus further includes:
the message state identifier sending module is used for acquiring at least one message state identifier corresponding to the output and displayed first chat message content and sending the message state identifier to the server; the message state identifier is used for representing the reading state of the content of the first chat message.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the second chat message content sending module is used for acquiring the second chat message content input by the user and sending the second chat message content to the server so that the server takes the current time corresponding to the received second chat message content as the message receiving time.
On the basis of the above technical solution, optionally, the apparatus further includes:
the message receiving time display module is used for outputting and displaying the message receiving time based on a first preset time display format; and when a time switching instruction input by a user is detected, outputting and displaying the message receiving time based on a second preset time display format.
The chat message display device provided by the embodiment of the invention can be used for executing the chat message display method provided by the embodiment of the invention, and has the corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the display apparatus for chat messages, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the method for displaying a chat message according to the foregoing embodiment of the present invention, and the display device for the chat message in the foregoing embodiment may be configured. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 4, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a display method of a chat message provided by an embodiment of the present invention.
Through the electronic equipment, the problem that the server needs to be repeatedly accessed when the chat messages are displayed is solved, and therefore the processing efficiency of the client on the message data is improved.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for displaying a chat message, the method including:
when the second client receives the message code sent by the server, analyzing the message code to obtain chat message data; the chat message data comprises a first chat message content sent to the server by the first client, message receiving time corresponding to the first chat message content and a chat object identifier;
respectively determining a display sequence and a display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier;
and outputting and displaying the first chat message content based on the display sequence and the display position.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the chat message display method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for displaying chat messages, comprising:
when the second client receives the message code sent by the server, analyzing the message code to obtain chat message data; the chat message data comprises a first chat message content sent to a server by a first client, message receiving time corresponding to the first chat message content and a chat object identifier;
respectively determining a display sequence and a display position corresponding to the content of the first chat message based on the message receiving time and the chat object identifier;
and outputting and displaying the first chat message content based on the display sequence and the display position.
2. The method of claim 1, wherein the chat message data further comprises at least one of a message type, a chat object number, and a message status identification.
3. The method of claim 2, further comprising:
when a message query instruction input by a user is detected, determining query chat message content corresponding to the message query instruction based on a query message type corresponding to the message query instruction and a message type corresponding to output and displayed chat message content, and outputting and displaying the query chat message content; the chat message content comprises a first chat message content and a second chat message content which is acquired by a second client and input by a user.
4. The method of claim 2, further comprising:
when an object information query instruction input by a user is detected, based on a chat object number in the object information query instruction, obtaining chat object information corresponding to the chat object number in a local database, and outputting and displaying the chat object information; wherein the chat object information in the local database is downloaded from the server in advance based on the chat object number.
5. The method of claim 2, further comprising:
acquiring at least one message state identifier corresponding to the output and displayed first chat message content, and sending the message state identifier to the server; wherein the message status identifier is used to characterize a read status of the first chat message content.
6. The method of claim 1, further comprising:
and acquiring second chat message content input by a user, and sending the second chat message content to a server so that the server takes the current time corresponding to the received second chat message content as message receiving time.
7. The method of claim 1, further comprising:
outputting and displaying the message receiving time based on a first preset time display format;
and when a time switching instruction input by a user is detected, outputting and displaying the message receiving time based on a second preset time display format.
8. A chat message display apparatus, comprising:
the chat message data determining module is used for analyzing the message code to obtain chat message data when the second client receives the message code sent by the server; the chat message data comprises a first chat message content sent to a server by a first client, message receiving time corresponding to the first chat message content and a chat object identifier;
a display sequence determining module, configured to determine, based on the message receiving time and the chat object identifier, a display sequence and a display position corresponding to the first chat message content, respectively;
and the first chat message content display module is used for outputting and displaying the first chat message content based on the display sequence and the display position.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of displaying chat messages as recited in any of claims 1-7.
10. A storage medium containing computer-executable instructions, which when executed by a computer processor, are operable to perform a method of displaying a chat message according to any of claims 1 to 7.
CN202110327400.3A 2021-03-26 2021-03-26 Chat message display method, device, equipment and storage medium Pending CN112968828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110327400.3A CN112968828A (en) 2021-03-26 2021-03-26 Chat message display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110327400.3A CN112968828A (en) 2021-03-26 2021-03-26 Chat message display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112968828A true CN112968828A (en) 2021-06-15

Family

ID=76278589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110327400.3A Pending CN112968828A (en) 2021-03-26 2021-03-26 Chat message display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112968828A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612679A (en) * 2021-07-29 2021-11-05 百度在线网络技术(北京)有限公司 Message verification method and device, electronic equipment and storage medium
CN115378896A (en) * 2022-08-26 2022-11-22 北京字跳网络技术有限公司 Message display method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883046A (en) * 2012-08-30 2013-01-16 广东欧珀移动通信有限公司 Information display method and device and mobile terminal
CN103309998A (en) * 2013-06-25 2013-09-18 腾讯科技(深圳)有限公司 Message query method, message query device and terminal equipment
CN104699378A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Information browsing method and information browsing system in multi-person chatting
CN106919635A (en) * 2016-06-13 2017-07-04 阿里巴巴集团控股有限公司 A kind of group chat record queries method, device and electronic equipment
CN107181669A (en) * 2017-04-26 2017-09-19 北京小米移动软件有限公司 The display methods and equipment of the transmission time of chat messages
CN107786744A (en) * 2017-10-26 2018-03-09 珠海市魅族科技有限公司 Date methods of exhibiting, device, computer installation and computer-readable recording medium
CN109729061A (en) * 2018-05-04 2019-05-07 平安科技(深圳)有限公司 Message treatment method, device, equipment and readable storage medium storing program for executing
CN111669316A (en) * 2020-06-19 2020-09-15 厦门亿联网络技术股份有限公司 Instant message processing method, device, equipment, server and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883046A (en) * 2012-08-30 2013-01-16 广东欧珀移动通信有限公司 Information display method and device and mobile terminal
CN103309998A (en) * 2013-06-25 2013-09-18 腾讯科技(深圳)有限公司 Message query method, message query device and terminal equipment
CN104699378A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Information browsing method and information browsing system in multi-person chatting
CN106919635A (en) * 2016-06-13 2017-07-04 阿里巴巴集团控股有限公司 A kind of group chat record queries method, device and electronic equipment
CN107181669A (en) * 2017-04-26 2017-09-19 北京小米移动软件有限公司 The display methods and equipment of the transmission time of chat messages
CN107786744A (en) * 2017-10-26 2018-03-09 珠海市魅族科技有限公司 Date methods of exhibiting, device, computer installation and computer-readable recording medium
CN109729061A (en) * 2018-05-04 2019-05-07 平安科技(深圳)有限公司 Message treatment method, device, equipment and readable storage medium storing program for executing
CN111669316A (en) * 2020-06-19 2020-09-15 厦门亿联网络技术股份有限公司 Instant message processing method, device, equipment, server and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612679A (en) * 2021-07-29 2021-11-05 百度在线网络技术(北京)有限公司 Message verification method and device, electronic equipment and storage medium
CN115378896A (en) * 2022-08-26 2022-11-22 北京字跳网络技术有限公司 Message display method and device, electronic equipment and storage medium
CN115378896B (en) * 2022-08-26 2024-01-30 北京字跳网络技术有限公司 Message display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111339186B (en) Workflow engine data synchronization method, device, medium and electronic equipment
CN110309475B (en) Page display method and device, terminal equipment and storage medium
CN111815421B (en) Tax policy processing method and device, terminal equipment and storage medium
US10116668B2 (en) System and method for enhanced display-screen security and privacy
US20210266276A1 (en) Name label display method and apparatus
CN110287146B (en) Method, device and computer storage medium for downloading application
US20060167913A1 (en) Converting an address to a hyperlink
CN112968828A (en) Chat message display method, device, equipment and storage medium
CN114528044B (en) Interface calling method, device, equipment and medium
CN109960554A (en) Show method, equipment and the computer storage medium of reading content
CN114757214A (en) Selection method and related device for sample corpora for optimizing translation model
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN109753644B (en) Rich text editing method and device, mobile terminal and storage medium
CN113313623A (en) Watermark information display method, watermark information display device, electronic equipment and computer readable medium
WO2019071907A1 (en) Method for identifying help information based on operation page, and application server
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
CN113807056B (en) Document name sequence error correction method, device and equipment
CN115730591A (en) User service method, device, equipment and storage medium based on knowledge graph
CN110224921B (en) Method, device, medium and electronic equipment for sending mail containing recruitment information
US20190206385A1 (en) Vocal representation of communication messages
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN115686229A (en) Expression input method, expression input device and computer program storage medium
CN113741748A (en) Information display method, device, equipment and storage medium
CN113420042A (en) Data statistics method, device, equipment and storage medium based on presentation
CN108494664B (en) Information processing method and apparatus, medium, and computing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210615