CN113179206B - Session display method, session acquisition method, device, equipment, system and medium - Google Patents

Session display method, session acquisition method, device, equipment, system and medium Download PDF

Info

Publication number
CN113179206B
CN113179206B CN202110385352.3A CN202110385352A CN113179206B CN 113179206 B CN113179206 B CN 113179206B CN 202110385352 A CN202110385352 A CN 202110385352A CN 113179206 B CN113179206 B CN 113179206B
Authority
CN
China
Prior art keywords
session
account
target session
unread
message
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
CN202110385352.3A
Other languages
Chinese (zh)
Other versions
CN113179206A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110385352.3A priority Critical patent/CN113179206B/en
Publication of CN113179206A publication Critical patent/CN113179206A/en
Application granted granted Critical
Publication of CN113179206B publication Critical patent/CN113179206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking 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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Abstract

The invention relates to a session display method, a session acquisition method, a device, equipment, a system and a medium, which receive a session display instruction, respond to the session display instruction, acquire session information, determine the type of a target session according to the total number of accounts corresponding to the target session in the session information, and acquire an account identifier corresponding to an unread message in the target session under the condition that the type of the target session is determined to be group chat.

Description

Session display method, session acquisition method, device, equipment, system and medium
Technical Field
The present disclosure relates to the field of instant messaging technologies, and in particular, to a session display method, a session acquisition method, an apparatus, a device, a system, and a medium.
Background
Instant Messaging (IM) applications are applications that enable Instant Messaging chat, allowing two or more people to communicate text messages, files, voice and video in real time using a network. Currently, IM applications have become indispensable applications for every internet user.
In the prior art, the session message of the IM application shows a corresponding session message, and the session message generally includes an avatar of a talker, a session name, and a latest session message. However, because the information amount of the session frame in the session message is displayed in a limited manner, when there are many unread messages in the group chat session, the unread messages can only be given for the total number of the recent unread messages, so that the user cannot make a reasonable session selection, and some important session information is easily missed or missed, which results in poor user experience.
Disclosure of Invention
The disclosure provides a session display method, a session acquisition method, a device, equipment, a system and a medium, which at least solve the technical problem that in the related art, under the condition that unread messages in a group chat session are more, only the total number of recent unread messages can be given, so that a user cannot make reasonable session selection. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a session display method applied to a terminal, including: receiving a session display instruction, responding to the session display instruction, acquiring session information, determining the type of a target session according to the total number of accounts corresponding to the target session in the session information, acquiring an account identifier corresponding to unread messages in the target session under the condition that the type of the target session is determined to be group chat, and displaying the target session and the account identifier corresponding to the unread messages on a target session interface.
In one implementation, the step of obtaining session information includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, the timestamp of the unread messages and the unread message number.
In one implementation, the step before the target session interface displays the account identifier corresponding to the target session and the unread message includes: and acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session, and taking account identifications which are not more than the preset number in the different account identifications as target account identifications to be displayed in a target session interface.
In one implementation manner, the step of obtaining different account identifiers corresponding to unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session according to the time sequence of the unread message timestamps, and extracting different accounts corresponding to the unread messages in the target session according to the sequenced unread messages.
In one implementation manner, the step of obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session based on the account priority, and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
In one implementation manner, the step of obtaining different account identifiers corresponding to unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifiers, and extracting different account identifiers corresponding to the unread messages in the target session according to the sequenced unread messages.
In one implementation, the session display method further includes: and receiving an unread message display instruction in the target session, acquiring the unread message sent by at least one account identifier, and displaying the at least one account identifier and the unread message sent by the at least one account identifier on a message display interface.
In one implementation manner, the session display method further includes: and acquiring the message state of the unread message, updating the account identifier corresponding to the unread message under the condition that the message state of the unread message is the read state, and displaying the updated account identifier on the target session interface.
According to a second aspect of the embodiments of the present disclosure, there is provided a session acquisition apparatus, applied to a server, including: receiving a session request instruction sent by a terminal, acquiring session information, and determining the type of a target session according to the total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session, and sending the target session and the account identifier corresponding to the unread message to the terminal.
In one implementation, the step of obtaining session information includes: the method comprises the steps of obtaining a session with a session time stamp larger than a local time stamp and feature information of the session, wherein the feature information comprises account identification, total account number, account priority, unread messages, time stamps of the unread messages and the number of the unread messages.
In one implementation, the step before the target session interface displays the account identifier corresponding to the target session and the unread message includes: and acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session, and taking account identifications which are not more than the preset number in the different account identifications as target account identifications to be displayed in a target session interface.
In one implementation manner, the step of obtaining different account identifiers corresponding to unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session according to the time sequence of the unread message timestamps, and extracting different accounts corresponding to the unread messages in the target session according to the sequenced unread messages.
In one implementation manner, the step of obtaining different account identifiers corresponding to unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session based on the account priority, and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
In one implementation manner, the step of obtaining different account identifiers corresponding to unread messages in the target session according to the feature information of the target session includes: and sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifiers, and extracting different account identifiers corresponding to the unread messages in the target session according to the sequenced unread messages.
In an implementation manner, the session obtaining method further includes: receiving a display instruction of the unread messages in the target session sent by the terminal, acquiring the unread messages sent by at least one account identifier, and sending the at least one account identifier and the unread messages sent by the at least one account identifier to the terminal.
In an implementation manner, the session obtaining method further includes: acquiring the message state of an unread message;
and under the condition that the message state of the unread message is the read state, updating the account identification corresponding to the unread message.
According to a third aspect of the embodiments of the present disclosure, there is provided a session display apparatus for a session, applied to a terminal, including a receiving unit, an obtaining unit, and a display unit. A receiving unit configured to execute a receiving session display instruction; an acquisition unit configured to execute acquisition of a conversation message in response to a conversation display instruction; the processing unit is further configured to execute the steps of determining the type of the target session according to the total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to the unread message in the target session under the condition that the type of the target session is determined to be group chat; and the display unit is configured to display the target session and the account identification corresponding to the unread message on the target session interface.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a session acquisition apparatus, which is applied to a server and includes a receiving unit, an acquisition unit, a processing unit, and a transmitting unit. The receiving unit is configured to execute a session request instruction sent by the receiving terminal; the acquisition unit is configured to perform acquisition of a session message; the processing unit is configured to execute determining the type of the target session according to the total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to the unread message in the target session under the condition that the type of the target session is determined to be group chat; the sending unit is configured to send the target session and the account identifier corresponding to the unread message to the terminal.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement: receiving a session display instruction, responding to the session display instruction, acquiring session information, determining the type of a target session according to the total number of accounts corresponding to the target session in the session information, acquiring an account identifier corresponding to unread messages in the target session under the condition that the type of the target session is determined to be group chat, and displaying the target session and the account identifier corresponding to the unread messages on a target session interface.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement: receiving a session request instruction sent by a terminal, acquiring session information, and determining the type of a target session according to the total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session, and sending the target session and the account identifier corresponding to the unread message to the terminal.
In a seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which instructions are stored, and when executed by a processor, the instructions implement: receiving a session display instruction, responding to the session display instruction, acquiring a session, determining the type of a target session according to the total number of accounts corresponding to the target session in session information, acquiring an account identifier corresponding to an unread message in the target session under the condition of determining that the type of the target session is group chat, and displaying the target session and the account identifier corresponding to the unread message on a target session interface.
In an eighth aspect, embodiments of the present disclosure provide a computer-readable storage medium having instructions stored thereon, where the instructions, when executed by a processor, implement: receiving a session request instruction sent by a terminal, acquiring session information, and determining the type of a target session according to the total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session, and sending the target session and the account identifier corresponding to the unread message to the terminal.
In a ninth aspect, embodiments of the present disclosure provide a computer program product, including computer instructions, which, when run on a terminal, enable the terminal to execute to implement: receiving a session display instruction, responding to the session display instruction, acquiring session information, determining the type of a target session according to the total number of accounts corresponding to the target session in the session information, acquiring an account identifier corresponding to unread messages in the target session under the condition that the type of the target session is determined to be group chat, and displaying the target session and the account identifier corresponding to the unread messages on a target session interface.
In a tenth aspect, embodiments of the present disclosure provide a computer program product, including computer instructions, which, when run on a server, enable the server to execute to implement: receiving a session request instruction sent by a terminal, acquiring session information, and determining the type of a target session according to the total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session, and sending the target session and the account identifier corresponding to the unread message to the terminal.
In an eleventh aspect, an embodiment of the present disclosure provides a session system, which includes a server and at least one terminal. The at least one terminal comprises a session displaying means as described in the third aspect above, and the server comprises a session obtaining means as described in the fourth aspect above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the method and the device, the target session and the account identification corresponding to the unread message can be displayed on the target session interface, so that the prompt of the user corresponding to the unread message in the group chat session can be given, the user can conveniently make reasonable session selection on the unread message in the group chat session, the important information in the group chat session can be easily paid attention to, and the user experience degree is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic illustration of an implementation environment of some embodiments of the present disclosure;
FIG. 2 is a flow chart one of a session display method according to an exemplary embodiment;
3A-3C are display interface diagrams illustrating three session display methods according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a session display method in accordance with an exemplary embodiment;
FIG. 5 is a flowchart three illustrating a method of session display in accordance with an exemplary embodiment;
6A-6C are display interface diagrams illustrating three session display methods according to another exemplary embodiment;
FIG. 7 is a flow chart diagram four illustrating a session display method in accordance with an exemplary embodiment;
FIG. 8 is a flowchart illustration of a method of session display in accordance with an exemplary embodiment;
FIG. 9 is a flowchart illustration of a method of session display in accordance with an exemplary embodiment;
FIG. 10 is a display interface diagram illustrating a session display method in accordance with another exemplary embodiment;
FIG. 11 is a seventh flowchart illustrating a method of session display in accordance with an exemplary embodiment;
FIG. 12 is a flowchart eight illustrating a session display method in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating a session display apparatus I according to an exemplary embodiment;
FIG. 14 is a block diagram of a session display apparatus II shown in accordance with an exemplary embodiment;
FIG. 15 is a block diagram illustrating a session acquisition apparatus I in accordance with an illustrative embodiment;
FIG. 16 is a block diagram illustrating a second session acquisition apparatus in accordance with an illustrative embodiment;
FIG. 17 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
To enable one skilled in the art to use the present disclosure, the following embodiments are given in connection with sessions in application specific scenarios of instant messaging. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure. Although the present disclosure is primarily described in the context of a session in instant messaging, it should be understood that this is merely one exemplary embodiment. The present disclosure may be applied to any other conversation system. For example, the present disclosure may be applied to different conversation systems, including chat rooms, shopping applications, office applications, and the like, or any combination thereof. Applications of the disclosed systems or methods may include web pages, plug-ins to browsers, clients, servers, cloud platforms, or custom systems, etc., or any combination thereof.
FIG. 1 is a schematic illustration of an implementation environment of some embodiments of the present disclosure. For example, the conversation system 100 can be a platform for chat rooms, game rooms, live rooms, and the like that can provide instant messaging chat. The session system 100 may include one or more of a server 110 and at least one terminal device (e.g., the first terminal device 130), the server 110 and the at least one terminal device being communicatively linked via a network 120, and the server 110 may include a processor for performing instruction operations. In addition, the conversation system 100 may further include a database 140.
In some embodiments, the server 110 may be a single server or a cluster of servers. The server cluster may be centralized or distributed (e.g., server 110 may be a distributed system). In some embodiments, the server 110 may be local or remote to the terminal. For example, server 110 may access information and/or data stored in at least one terminal device 130 or database 140, or any combination thereof, via network 120.
As another example, server 110 may be directly connected to at least one of at least one terminal device 130 and database 140 to access stored information and/or data. In some embodiments, the server 110 may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof.
In some embodiments, the server 110 may include one or more processors. The processor may process information and/or data related to the service request to perform one or more of the functions described in this disclosure. For example, the processor may establish a session connection with at least one of the other terminal devices, based on a request obtained from at least one of the plurality of terminal devices, and/or the like. In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set Computing (RISC), a microprocessor, or the like, or any combination thereof.
Network 120 may be used for the exchange of information and/or data. In some embodiments, one or more devices in the conversation system 100 (e.g., the server 110, one of the plurality of end devices 130, and the database 140) may send information and/or data to other devices. For example, the server 110 may obtain a service request from one terminal device 130 of the plurality of terminal devices via the network 120. In some embodiments, the network 120 may be any type of wired or wireless network, or combination thereof. Merely by way of example, network 120 may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the Internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (Metropolis Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a Bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof. In some embodiments, network 120 may include one or more network access points. For example, network 120 may include a wired or wireless network access point, such as a base station and/or a network switching node, through which one or more devices of session system 100 may connect to network 120 to exchange data and/or information.
In some embodiments, the account of the at least one terminal device 130 may set different account identities according to specific application scenarios in the session system, such as: avatar identification, account code, account name, etc.
In some embodiments, the terminal device 130 may comprise a mobile device, a tablet computer, a laptop computer, or a built-in device in a motor vehicle, etc., or any combination thereof. In some embodiments, the mobile device may include a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart shoelace, a smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include a smart phone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or a point of sale (POS) device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like. In some embodiments, the built-in devices in the motor vehicle may include an on-board computer, an on-board control screen, and the like.
Database 140 may store data and/or instructions. In some embodiments, database 140 may store data obtained from terminal devices. In some embodiments, database 140 may store data and/or instructions for the exemplary methods described in this disclosure. In some embodiments, the database 140 may include mass storage, removable storage, volatile Read-write Memory, read-Only Memory (ROM), or the like, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, etc.; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; the volatile read-write Memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (Dynamic Random Access Memory, referred to as DRAM), double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (Static Random-Access Memory, SRAM for short), thyristor RAM (T-RAM for short), zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), programmable ROMs (PROMs), erasable Programmable ROMs (PERROMs), electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks ROMs, and the like. In some embodiments, database 140 may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, across clouds, multiple clouds, or the like, or any combination thereof.
In some embodiments, a database 140 may be connected to the network 120 to communicate with one or more devices in the session system 100 (e.g., the server 110 and the terminal device 130, etc.). One or more devices in the conversation system 100 may access data or instructions stored in the database 140 via the network 120. In some embodiments, the database 140 may be directly connected to one or more devices in the conversation system 100 (e.g., the server 110 and the terminal device 130, etc.); alternatively, in some embodiments, database 140 may also be part of server 110.
Currently, the session message of the IM application shows a corresponding session message, which generally includes an avatar of a talker, a session name, and a latest session message. However, because the information amount of the session frame in the session message is displayed in a limited manner, when there are many unread messages in the group chat session, the unread messages can only be given for the total number of the recent unread messages, so that the user cannot make a reasonable session selection, and some important session information is easily missed or missed, which results in poor user experience.
In order to solve the above problems, the session display method provided in this embodiment may display the target session and the account identifier corresponding to the unread message on the target session interface, so as to provide a prompt for a user corresponding to the unread message in the group chat session, facilitate the user to make a reasonable session selection for the unread message in the group chat session, easily focus on important information in the group chat session, and further improve user experience.
Fig. 2 is a flow chart illustrating a session display method according to an example embodiment. As shown in fig. 2, the session display method is used in a terminal, and includes the following steps S201 to S204.
In step S201, a session display instruction is received.
In step S202, in response to the conversation display instruction, conversation information is acquired.
In step S203, a type of the target session is determined according to the total number of accounts corresponding to the target session in the session information, and an account identifier corresponding to the unread message in the target session is acquired when the type of the target session is determined to be group chat.
In step S204, the account identifier corresponding to the target session and the unread message is displayed on the target session interface.
In this embodiment, a session display instruction is received, where the instruction may be a gesture action of a user, a click input instruction of the user, or a fingerprint instruction, a face recognition instruction, and the like, and may be specifically set according to an actual situation, where the display instruction is used to display a session requested by the user. And responding to the conversation display instruction, and acquiring conversation information. The session information may be directly acquired from the server, or may be acquired from the server, stored in the terminal, and then directly acquired from the terminal. The session information includes multiple types of sessions, which may be session types of one-to-one private chat or session types of group chat, or specifically, the session types may be determined according to the total number of accounts corresponding to the sessions. All the contents of the session can be shown in a list form, when the session list includes a target session, that is, when the total account number corresponding to the target session is greater than or equal to 3, the type of the target session is group chat, and when the type of the target session is determined to be group chat, an account identifier corresponding to an unread message in the target session is obtained, and the account identifier is used for prompting an account corresponding to the unread message sent in the target session. For example, the image may be composed of head portrait identifiers of a plurality of accounts, or may be a name identifier list of a plurality of accounts, or may be in the form of identity information identifiers of a plurality of accounts, which may be specifically set according to actual situations. And displaying the target session and the account identifier corresponding to the unread message on a target session display interface, wherein the account identifier corresponding to the unread message can be on the right side, in the middle of a target session frame or at other positions convenient for a user to view and click, can be in the form of bubbles, floating windows, labels and the like, and can be specifically set according to actual conditions without being limited thereto.
Optionally, in this embodiment, in step S202, the obtaining of the session information includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, timestamps of the unread messages and the unread message number.
Specifically, the acquiring of the session information from the server includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, timestamps of the unread messages and the unread message number. The account identification can be a head portrait of a user, an account name, an account number of the account and the like, the total number of the accounts refers to the number of the accounts participating in the group chat session, the account priority refers to the attention degree set by the user for each account participating in the group chat session, so that the user can pay attention to unread session information corresponding to the account with high account priority in time, the unread session information can comprise unread messages, timestamps of the unread messages, the number of the unread messages and the like, a corresponding user prompt can be given according to the characteristic information of the unread messages in the group chat session, important unread messages in the group chat session can be paid attention to more easily, the user can conveniently make reasonable session selection on the unread messages in the group chat session, and the user experience degree is improved.
Illustratively, fig. 3A-3C are display interface diagrams illustrating three session display methods according to an exemplary embodiment. As shown in fig. 3A, session messages include a private chat session and a group chat session, and when there are multiple unread messages in a group chat session a group and a group chat session B group, the account identifier is displayed on the right side of the session, where the account identifier may be an avatar identifier, an account name, an account number, and the like of an account corresponding to the unread message. As shown in fig. 3B, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, the account identifier is displayed in the middle of the group chat session, where the account identifier may be an avatar identifier, an account name, an account number, and the like of an account corresponding to the unread message. As shown in fig. 3C, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, the account identifier is displayed in the form of a bubble at the top layer of the session, where the account identifier may be an avatar identifier, an account name, an account number, or the like for sending the unread messages. The display position of the prompt information in the session may be specifically set according to the actual situation, and is not limited to this.
According to the method and the device for prompting the account identification corresponding to the unread message in the group chat session, the user can conveniently make reasonable session selection, the desire of the user for clicking the session is improved, the situation that the user is careless due to too many session messages is avoided, certain important information cannot be omitted or missed, and the experience degree of the user is improved.
Fig. 4 is a flowchart illustrating a session display method according to an example embodiment. As shown in fig. 4, the session display method is used in the terminal, and before the above step S204, the session display method further includes the following steps S401 to S402.
In step S401, different account identifiers corresponding to the unread messages in the target session are obtained according to the feature information of the target session.
In step S402, account ids not greater than the preset number of different account ids are used as target account ids to be displayed in the target session interface.
In this embodiment, different account identifiers corresponding to the unread messages in the target session may be obtained according to the feature information of the target session, for example, different account identifiers may be sorted according to the account information in the target session, or different account identifiers may be sorted according to the session information of the unread messages, and a preset number of account identifiers that can be accommodated in the target session interface may be used as the target account identifiers to be displayed, for example, the unread session interface may only display 1 account identifier or 2 account identifiers, or may combine a plurality of account identifiers into a nine-grid combined account identifier, and the preset number may be specifically set according to an actual situation. Therefore, different account identifications can be extracted, a preset number of account identifications can be prompted on a group chat session interface, and a user can know the user corresponding to the unread message in the group chat session more clearly.
Fig. 5 is a flow chart illustrating a session display method according to an example embodiment. As shown in fig. 5, the session display method is used in a terminal, and the step S401 includes the following steps S501 to S502.
In step S501, the unread messages in the target session are sorted based on account priority.
In step S502, different account identifiers corresponding to the unread messages in the target session are extracted according to the sorted unread messages.
In this embodiment, N unread messages of the target session may be directly obtained from the server, or may be stored in the terminal, and then the terminal obtains the N unread messages after storage, where the N unread messages may be placed in a list or an address, where N is greater than or equal to 1 and is a positive integer, and may be specifically set according to an actual situation. For the N unread messages, the N unread messages in the target session may be sorted based on the account priority, and account identifiers of M different accounts corresponding to the N unread messages are extracted. Different account identifications corresponding to the unread messages are extracted based on the account priority, and the setting can be specifically carried out according to the preference of the user. Then, a sorted account identification list can be generated according to the extracted account identifications of the M different accounts, and the account identification list is used as prompt information of the N unread messages, wherein M is more than or equal to 1,M and is less than or equal to N, and M is a positive integer. The method comprises the steps of extracting different account identifications corresponding to unread messages in a target session according to sorted account identification list messages, splicing head portrait identifications of accounts into a nine-square picture identification in sequence, displaying the head portrait identifications of the accounts in a row, displaying name identifications of the accounts in a list in sequence, displaying account identifications of the accounts in a list in sequence, and the like.
Fig. 6A-6C are exemplary display interface diagrams illustrating three session display methods according to an exemplary embodiment. As shown in fig. 6A, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, the avatar identifier of the account is displayed on the right side of the session as a prompt corresponding to the unread message in the group chat session. The group chat session A group gives the head portrait identifications of 4 accounts, and the group chat session B group gives the head portrait identifications of 1 account, so that a user can know who sends a message to the user intuitively, the desire of the user to check the session is improved, the user can select the session reasonably, the session message is checked, and the user experience is improved. As shown in fig. 6B, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, the name identifier of the account is displayed on the right side of the session as a prompt corresponding to the unread message in the group chat session. The group chat session group a gives name identifications of 4 accounts, such as: small money, xiao Xie, xiaoming, queen account name list. The group chat session B group gives 1 account name identifier, such as: xiao Li. The user can intuitively know who sends the message to the user, the desire of the user to check the conversation is improved, the user can reasonably select the conversation and check the conversation message, and the user experience degree is improved. As shown in fig. 6C, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, the avatar identifier of the account is displayed on the right side of the session as a prompt corresponding to the unread message in the group chat session, where the group chat session a group provides account identifiers of 4 accounts, such as: account a, account B, account C, and account D, where the group chat session B group gives account id of 1 account, such as: account number F. The user can directly know who sends the message to the user, the desire of the user to check the conversation is improved, the user can reasonably select the conversation and check the conversation message, and the user experience is improved. The specific form of the account identifier list in the session may be set according to practical situations, and is not limited to this.
According to the method and the device, the unread messages in the target session are sequenced based on the account priority, different account identifications corresponding to the unread messages in the target session are extracted according to the sequenced unread messages, and different account identifications are generated to serve as prompts of the unread messages in the group chat session, so that the account identifications corresponding to the unread messages can be displayed on a group chat session interface according to the attention of the user, the user can know the unread messages in the group chat session according to the account priority sequence, the user can conveniently and reasonably select the unread messages in the group chat session, and the experience degree of the user is improved.
Fig. 7 is a flow chart illustrating a session display method according to an example embodiment. As shown in fig. 7, the session display method is used in a terminal, and the above step S401 may include the following steps S701 to S702.
In step S701, the unread messages in the target session are sorted in the chronological order of the unread message timestamps.
In step S702, different account ids corresponding to the unread messages in the target session are extracted according to the sorted unread messages.
In this embodiment, for each of the N unread messages, a timestamp of the unread message may be obtained, each of the unread messages is sequentially sorted according to a sequence of the timestamps, then, an account identifier corresponding to each of the sorted unread messages is obtained, and M different account identifiers are extracted. The timestamp is used for reflecting the time when the account corresponding to the group chat session sends the message, and the implementation manner, the acquisition manner and the display manner of the timestamp are common knowledge of technical personnel in the field and can be set according to actual conditions.
Illustratively, in one group chat session, an account a sends a message 1 and a message 2, an account B sends a message 3, and an account C sends a message 4, where a timestamp of the message 1 corresponds to a time of 11:01, time 11 for message 2: 03, message 3 corresponds to a time of 11:02, message 4 corresponds to a time of 11:05, sequencing the unread messages according to the time stamps, namely, sequentially obtaining a message 1, a message 3, a message 2 and a message 4, and obtaining corresponding account identifications of an account A, an account B, an account A and an account C, wherein the account A, the account B and the account C can be extracted at the moment. Or the accounts can be arranged according to the reverse time sequence, so that the account C, the account A and the account B can be extracted, and the specific setting can be carried out according to the actual situation.
According to the embodiment, the unread messages in the target session are sequenced according to the time sequence of the timestamps of the unread messages, different accounts corresponding to the unread messages in the target session are extracted according to the sequenced unread messages, different account identifications are generated to serve as prompts of the unread messages in the group chat session, so that the account identifications corresponding to the unread messages can be displayed on a group chat session interface according to the time sequence of the timestamps of the unread messages, a user can know the unread messages in the group chat session according to the time sequence of the timestamps of the unread messages, the unread messages of the group chat session can be reasonably selected by the user, and the experience degree of the user is improved.
FIG. 8 is a flow diagram illustrating a method of session alerting, according to an exemplary embodiment. As shown in fig. 8, the session prompting method is used in a terminal, and the step S401 may include the following steps S801 to S803.
In step S801, the unread messages in the target session are sorted according to the total number of the unread messages sent by the account id.
In step S802, different account identifiers corresponding to the unread messages in the target session are extracted according to the sorted unread messages.
In this embodiment, for each of the N unread messages, the account identifier of the unread message and the total number of the unread messages sent by the account identifier may be obtained, the account identifiers corresponding to the N unread messages are sequentially sorted according to the total number of the unread messages sent by the account identifier, and then, M different account identifiers are extracted from the sorted account identifiers. The number of sent unread messages may be counted and accumulated, and the specific implementation process may be according to the actual situation, which is not limited to this.
Illustratively, in the group chat session, account a sends unread messages 1 and 2, account B sends unread messages 3, account C sends unread messages 4, and account D sends unread messages 5, 6, and 7. The total number of the unread messages sent by the account A is 2, the total number of the unread messages sent by the account B and the account C is 1, the total number of the unread messages sent by the account D is 3, and the account identifications are sequentially sorted according to the total number of the unread messages sent, so that the account D, the account A, the account B and the account C are sequentially arranged. 1-4 different account identities are extracted from this set of account identities. The concrete can be set according to the actual situation.
According to the method and the device, the unread messages in the target session are sequenced by sending the total number of the unread messages according to the account identifiers, different account identifiers corresponding to the unread messages in the target session are extracted according to the sequenced unread messages, and different account identifiers are generated to serve as prompts of the unread messages in the group chat session, so that a user can know the unread messages in the group chat session according to the total number of the unread messages sent by the account identifiers, the user can conveniently and reasonably select the unread messages in the group chat session, and the user experience is improved.
It should be noted that, in the above embodiment, feature information such as the account priority, the timestamp of the unread message, and the total number of unread messages sent by the account identifier may also be combined, for example: sequencing according to the account priority level of the unread messages, and then sequencing according to the time stamps; or the total number of the unread messages is sent according to the account identification, and then the unread messages are sequenced according to the time stamps; the characteristic information may also be set with a weight value respectively, and then the weight values of the account identifiers are calculated after being combined arbitrarily, and the ranking is performed according to the weight value of each account identifier, and the like.
Fig. 9 is a flow chart illustrating a session display method according to an example embodiment. As shown in fig. 9, the session display method is used in a terminal, and the session display method may include the following steps S901 to S903.
In step S901, a display instruction of an unread message in a target session is received;
in step S902, an unread message sent by at least one account identifier is acquired;
in step S903, at least one account identifier and an unread message sent by the at least one account identifier are displayed on the message display interface.
In this embodiment, a display instruction of the unread message in the target session is received, where the display instruction may be a gesture action of a user, or an instruction clicked and input by the user, or may be an instruction of a fingerprint, a face recognition, or the like, and may be specifically set according to an actual situation, the unread message sent by at least one account identifier is obtained in response to the display instruction of the unread message in the target session, and the unread message sent by at least one account identifier are displayed on the message display interface. The at least one account identifier and the unread message sent by the at least one account identifier may be directly displayed in a message frame of the target session, may also be displayed on a top layer of a display frame of the target session in the form of bubbles or floating windows, may also be provided with a separate display interface such as an unread message display frame, and may be specifically set according to an actual situation, and is not limited thereto.
Illustratively, fig. 10 is a display interface diagram illustrating a session display method according to an exemplary embodiment. As shown in fig. 10, the session messages include a private chat session and a group chat session, and when there are multiple unread messages in the group chat session a group and the group chat session B group, an unread message display box is displayed on the session interface, and N unread messages corresponding to the M different account identifiers are displayed, such as: unread message 1 sent by the group chat session A group for the small money, unread message 2 and unread message 3 sent by the small money, unread message 4 and unread message 5 sent by xiao Xie, unread message 6-10 sent by the small king, and the like. Especially, when M is 1, the unread message sent by the account is directly displayed, so that the user can conveniently and efficiently obtain the content of the unread message, thereby not easily omitting or missing important information and improving the user experience.
According to the embodiment, the unread messages and the corresponding account identifications in the group chat session are displayed according to the prompt information, so that the user can simply and visually acquire the unread messages, the user can conveniently make reasonable session selection, certain important information cannot be missed or missed, and the user experience is improved.
Fig. 11 is a flow chart illustrating a session display method in accordance with an exemplary embodiment. As shown in fig. 11, the session display method is used in a terminal, and the display method may include the following steps S1101 to S1102.
In step S1101, the message status of the unread message is acquired.
In step S1102, when the message status of the unread message is the read status, the account id corresponding to the unread message is updated, and the updated account id is displayed on the target session interface.
In this embodiment, the message status of the unread message is obtained, where the message status may specifically include a read status or an unread status of the unread message, an unread number or a read number, and the like, and may be specifically set according to an actual situation. According to the message states, the account identification corresponding to the unread message in the target session can be updated. If the message status of the unread message is the read status, one or more account identifiers in the account identifier list can be deleted, and the updated account identifiers are displayed on the target session interface.
In the embodiment, by acquiring the message state of the unread message, the account identifier corresponding to the unread message is updated under the condition that the message state of the unread message is the read state, and the updated account identifier is displayed on the target session interface, so that the user can timely recover to the processing mechanism of the conventional session according to the processing condition of the unread message, and can perform conventional session operation, and the user can select which session processing mechanism according to own requirements, thereby improving the experience of the user.
Fig. 12 is a flowchart illustrating a session display method according to an example embodiment. As shown in fig. 12, the session display method is used in a server, and includes the following steps S1201 to S1204.
In step S1201, a session request instruction sent by the terminal is received, session information is acquired,
in step S1202, determining a type of the target session according to the total number of accounts corresponding to the target session in the session information;
in step S1203, when the type of the target session is determined to be group chat, an account identifier corresponding to the unread message in the target session is acquired.
In step S1204, the account identifier corresponding to the target session and the unread message is sent to the terminal.
In this embodiment, a session request instruction sent by a terminal is received, session information is obtained, where the session information includes multiple types of sessions, and may be a session type of one-to-one private chat or a session type of group chat, or specifically, the session type may be determined according to a total number of accounts corresponding to the session. All the contents of the session can be shown in a list form, when the session list includes a target session, that is, when the total account number corresponding to the target session is greater than or equal to 3, the type of the target session is group chat, and when the type of the target session is determined to be group chat, an account identifier corresponding to an unread message in the target session is obtained, and the account identifier is used for prompting an account corresponding to the unread message sent in the target session. Then, the target session and the prompt information of the target session are sent to the terminal.
In the embodiment, the server acquires the account identifier corresponding to the unread message in the group chat session and sends the account identifier to the terminal, so that the terminal can prompt a user corresponding to the unread message in the group chat session, the user can conveniently make reasonable session selection on the unread message in the group chat session, important information in the group chat session is easily concerned, and the user experience is further improved.
Optionally, in this embodiment, in step S1201, the obtaining of the session information includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, the timestamp of the unread messages and the unread message number.
Specifically, the acquiring of the session information from the server includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, timestamps of the unread messages and the unread message number. The account identification can be the head portrait of the user, the name of the account, the account number of the account and the like, the total number of the account refers to the number of the accounts participating in the group chat session, the account priority refers to the attention degree set by the user for each account participating in the group chat session, so that the user can pay attention to the unread session information corresponding to the account with high account priority in time, the unread session information can comprise unread messages, timestamps of the unread messages, the number of the unread messages and the like, a corresponding user prompt can be given according to the characteristic information of the unread messages in the group chat session, important unread messages in the group chat session can be paid attention to more easily, the user can conveniently make reasonable session selection on the unread messages in the group chat session, and the experience degree of the user is improved.
Optionally, in this embodiment, before the step 1203, the method may further include the step S401 to the step S402, and what is different from the implementation manner of the session display method is that the server executes the operations corresponding to the step S401 to the step S402, and beneficial effects of the present embodiment are all described in detail in the foregoing embodiments, and are not described again here.
Optionally, in this embodiment, the step 401 may include any one of the steps S501 to S502, S701 to S702, and S801 to S802 as described above, and a different implementation manner from the session display method is that a server executes a corresponding operation, and beneficial effects of the present embodiment are described in detail in the foregoing embodiments, and are not described herein again.
In order to facilitate understanding of the session display method provided by the present application, an application scenario in which the terminal and the server interactively acquire the group chat unread session prompt information is taken as an example for description.
Step S1: the terminal receives a conversation display instruction.
Step S2: the terminal responds to the conversation display instruction and obtains the conversation from the server.
And step S3: and the server determines the type of the target session according to the total number of accounts corresponding to the target session in the session information, and acquires an account identifier corresponding to the unread message in the target session under the condition that the type of the target session is determined to be group chat.
And step S4: and the server sorts the unread messages according to the time sequence of the timestamp of each unread message in the group chat session.
Step S5: and the server acquires accounts corresponding to the sequenced unread messages, extracts the image identifications of the different accounts and splices the image identifications into image puzzles of the different accounts.
Step S6: and the server sends the image puzzles of the different accounts to the terminal.
Step S7: and the terminal displays the target session and the image puzzles of different accounts on a target session display interface.
Step S8: and the terminal sends a display instruction of the unread message in the target session to the server.
Step S9: the server acquires a session message corresponding to at least one account identifier.
Step S10: and the server sends the at least one account identifier and the unread message sent by the at least one account identifier to the terminal.
And S11, the terminal displays at least one account identifier and an unread message sent by the at least one account identifier on a message display interface.
The beneficial effects of the present embodiment are described in detail in the foregoing embodiments, and are not described herein again.
The above description mainly introduces the solutions provided by the embodiments of the present disclosure from the perspective of the server/terminal device. It is understood that the server/terminal device may include one or more hardware structures and/or software modules for implementing the aforementioned session display method, and these execution hardware structures and/or software modules may constitute an electronic device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for performing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Accordingly, the embodiments of the present disclosure also provide a session display apparatus, which may be fully integrated in a server/terminal device, or partially integrated in a server or partially integrated in a terminal device.
Fig. 13 is a block diagram illustrating a session display apparatus according to an example embodiment. Referring to fig. 13, the apparatus is applied to a terminal and includes a receiving unit 11, an acquiring unit 12, a processing unit 13, and a display unit 14.
A receiving unit 11 configured to execute a receiving session display instruction;
an acquisition unit 12 configured to execute acquisition of a conversation message in response to a conversation display instruction;
the processing unit 13 is configured to execute determining a type of the target session according to the total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to an unread message in the target session under the condition that the type of the target session is determined to be group chat;
and the display unit 14 is configured to display the target session and the account identifier corresponding to the unread message on the target session interface.
Optionally, the obtaining unit 12 is configured to execute obtaining the session message, and specifically includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, timestamps of the unread messages and the unread message number.
Optionally, the processing unit 13 is further configured to perform the steps before the target session interface displays the target session and the account identifier corresponding to the unread message, where the steps include: and acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session, and taking account identifications not greater than a preset number in the different account identifications as target account identifications to be displayed in a target session interface.
Optionally, the processing unit 13 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: sequencing the unread messages in the target session based on the account priority; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
Optionally, the processing unit 13 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: sequencing the unread messages in the target session according to the time sequence of the unread message timestamps; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
Optionally, the processing unit 13 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifier; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
Optionally, the receiving unit 11 is further configured to execute a display instruction for receiving the unread message in the target session;
the obtaining unit 12 is further configured to perform obtaining an unread message sent by at least one account identifier;
the display unit 14 is further configured to perform displaying the at least one account identifier and the unread message sent by the at least one account identifier on a message display interface.
Alternatively, fig. 14 is a block diagram illustrating a session acquisition apparatus according to an example embodiment. Referring to fig. 15, the session acquisition means further includes an updating unit 15,
the acquiring unit 12 is configured to acquire a message status of the unread message;
the updating unit 15 is configured to update the account identifier corresponding to the unread message when the message status of the unread message is the read status;
the display unit 14 is further configured to perform displaying the updated account identification on the target session interface.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 15 is a block diagram illustrating a session acquisition device according to an example embodiment. Referring to fig. 15, the apparatus is applied to a server and includes a receiving unit 21, an obtaining unit 22, a processing unit 23, and a transmitting unit 24.
The receiving unit 21 is configured to execute a session request instruction sent by the receiving terminal;
the retrieving unit 22 is configured to perform retrieving the session message;
the processing unit 23 is configured to execute determining a type of the target session according to a total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to an unread message in the target session when the type of the target session is determined to be group chat;
the sending unit 24 is configured to send the target session and the account identifier corresponding to the unread message to the terminal.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Optionally, the obtaining unit 21 is configured to perform obtaining the session message, and specifically includes: and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, unread message timestamps and unread message numbers.
Optionally, the processing unit 23 is further configured to perform the steps before the target session interface displays the target session and the account identifier corresponding to the unread message, where the steps include: and acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session, and taking account identifications not greater than a preset number in the different account identifications as target account identifications to be displayed in a target session interface.
Optionally, the processing unit 23 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: ranking the unread messages in the target session based on the account priority; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
Optionally, the processing unit 23 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: sequencing the unread messages in the target session according to the time sequence of the unread message timestamps; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
Optionally, the processing unit 23 is configured to execute, according to the feature information of the target session, obtaining different account identifiers corresponding to the unread message in the target session, and specifically includes: sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifier; and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages. Optionally, the receiving unit 21 is further configured to execute a display instruction for receiving the unread message in the target session;
the obtaining unit 22 is further configured to perform obtaining an unread message sent by at least one account identifier;
the display unit 24 is further configured to perform displaying the at least one account identifier and the unread message sent by the at least one account identifier on the message display interface.
Alternatively, fig. 16 is a block diagram illustrating a session acquisition apparatus according to an example embodiment. Referring to fig. 16, the session acquisition means further includes an updating unit 25.
The obtaining unit 22 is further configured to perform updating the message status of the unread message;
the updating unit 25 is configured to update the account identifier corresponding to the unread message when the message status of the unread message is the read status;
the sending unit 24 is further configured to execute sending the updated account identifier corresponding to the unread message to the terminal.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device for implementing the session display method or the session acquisition method, where the electronic device may be applied to, but not limited to, a terminal or a server. Fig. 17 is a block diagram illustrating an electronic device according to an exemplary embodiment, as shown in fig. 17, the electronic device comprising a memory 1702 and a processor 1704, the memory 1702 having stored therein a computer program, the processor 1704 being arranged to perform the steps of any of the above method embodiments by means of the computer program.
Optionally, in this embodiment of the present disclosure, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment of the present disclosure, the processor may be configured to execute the following steps by a computer program:
in step S201, a session display instruction is received.
In step S202, in response to the conversation display instruction, conversation information is acquired.
In step S203, a type of the target session is determined according to the total number of accounts corresponding to the target session in the session information, and an account identifier corresponding to the unread message in the target session is acquired when the type of the target session is determined to be group chat.
In step S204, the account identifier corresponding to the target session and the unread message is displayed on the target session interface.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 17 is only an illustration, where the memory 1702 may be used to store software programs and modules, such as program instructions/modules corresponding to the display method and apparatus for a session in the embodiment of the present disclosure, and the processor 1704 is connected to the memory 1702 through the bus 1710, and executes various functional applications and data processing by running the software programs and modules stored in the memory 1702, that is, implements the above-mentioned display method for a session. The memory 1702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1702 may further include memory located remotely from the processor 1704, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1702 may be, but is not limited to, specifically configured to store program steps of a display method of a session. As an example, as shown in fig. 17, the above-mentioned memory 1702 may include, but is not limited to, the receiving unit 11, the obtaining unit 12, the processing unit 13, and the like in the above-mentioned session display apparatus, or the above-mentioned memory 1702 may include, but is not limited to, the receiving unit 21, the obtaining unit 22, the processing unit 23, the sending unit 24, and the like in the above-mentioned session obtaining apparatus. In addition, the present invention may further include, but is not limited to, other module units in the session obtaining apparatus for the session, which is not described in detail in this example.
Optionally, in this embodiment of the present disclosure, the processor may be configured to execute the following steps by a computer program:
in step S1201, a session request instruction sent by the terminal is received;
in step S1202, session information is acquired;
in step S1203, determining a type of the target session according to a total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session.
In step S1203, the account identifier corresponding to the target session and the unread message is sent to the terminal.
Optionally, the electronic device further includes: the transmitting means 1706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1706 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1708 for displaying special effects to be displayed; and a connection bus 1710 for connecting the respective module parts in the above-described electronic apparatus.
Embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
in step S201, a session display instruction is received.
In step S202, in response to the conversation display instruction, conversation information is acquired.
In step S203, a type of the target session is determined according to the total number of accounts corresponding to the target session in the session information, and an account identifier corresponding to the unread message in the target session is acquired when the type of the target session is determined to be group chat.
In step S204, the account identifier corresponding to the target session and the unread message is displayed on the target session interface. Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
in step S1201, a session request instruction transmitted by the terminal is received.
In step S1202, session information is acquired.
In step S1202, determining a type of the target session according to the total number of accounts corresponding to the target session in the session information; and under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session.
In step S1204, the account identifier corresponding to the target session and the unread message is sent to the terminal.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present disclosure.
In the above embodiments of the present disclosure, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed server may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or devices may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The foregoing is merely a preferred embodiment of the present disclosure, and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle of the present disclosure, and these should also be considered as the protection scope of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (31)

1. A conversation display method is applied to a terminal, and comprises the following steps:
receiving a conversation display instruction;
responding to a conversation display instruction, and acquiring conversation information;
determining the type of the target session according to the total number of accounts corresponding to the target session in the session information, and acquiring an account identifier corresponding to the unread message in the target session under the condition that the type of the target session is determined to be group chat;
displaying the target session and the account identification corresponding to the unread message on the target session interface;
before the target session interface displays the target session and the account identifier corresponding to the unread message, the method further includes:
acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session;
and taking account identifications which are not more than the preset number in the different account identifications as target account identifications to be displayed in the target session interface.
2. The method of claim 1, wherein the obtaining session information comprises:
and acquiring the session with the session timestamp larger than the local timestamp and the characteristic information of the session, wherein the characteristic information comprises account identification, total account number, account priority, unread messages, the timestamp of the unread messages and the unread message number.
3. The method according to claim 1, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes:
ranking the unread messages in the target session based on account priority;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
4. The method according to claim 1, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes:
sequencing the unread messages in the target session according to the time sequence of the unread message timestamps;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
5. The method according to claim 1, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes:
sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifier;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
6. The method according to any one of claims 1-5, further comprising:
receiving a display instruction of the unread message in the target session;
obtaining an unread message sent by at least one account identifier;
and displaying the at least one account identifier and the unread message sent by the at least one account identifier on a message display interface.
7. The method of claim 1, further comprising:
acquiring the message state of the unread message;
and under the condition that the message state of the unread message is the read state, updating the account identifier corresponding to the unread message, and displaying the updated account identifier on the target session interface.
8. A session acquisition method applied to a server, the method comprising:
receiving a session request instruction sent by a terminal, and acquiring session information;
determining the type of the target session according to the total number of accounts corresponding to the target session in the session information;
under the condition that the type of the target session is determined to be group chat, acquiring an account identifier corresponding to the unread message in the target session;
sending the target session and the account identifier corresponding to the unread message to the terminal;
before the sending the target session and the account identifier corresponding to the unread message to the terminal, the method further includes:
acquiring different account identifications corresponding to the unread messages in the target session according to the characteristic information of the target session;
and taking account identifications which are not more than the preset number in the different account identifications as target account identifications to be displayed.
9. The method of claim 8, wherein the obtaining session information comprises:
the method comprises the steps of obtaining a session with a session time stamp larger than a local time stamp and feature information of the session, wherein the feature information comprises account identification, total account number, account priority, unread messages, unread message time stamps and unread message number.
10. The method according to claim 8, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session comprises:
ranking the unread messages in the target session based on account priority;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
11. The method according to claim 8, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes:
sequencing the unread messages in the target session according to the time sequence of the unread message timestamps;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
12. The method according to claim 8, wherein the obtaining different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session includes:
sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifier;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
13. The method according to any one of claims 8-12, further comprising:
receiving a display instruction of the unread message in the target session sent by a terminal;
obtaining an unread message sent by at least one account identifier;
and sending the at least one account identifier and an unread message sent by the at least one account identifier to the terminal.
14. The method of claim 8, further comprising:
acquiring the message state of the unread message;
under the condition that the message state of the unread message is a read state, updating an account identifier corresponding to the unread message;
and sending the updated account identification corresponding to the unread message to the terminal.
15. A conversation display device, applied to a terminal, includes:
a receiving unit configured to execute receiving a session display instruction;
an acquisition unit configured to execute acquisition of a conversation message in response to a conversation display instruction;
the processing unit is configured to execute the steps of determining the type of the target session according to the total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to the unread message in the target session under the condition that the type of the target session is determined to be group chat;
the display unit is configured to display the target session and the account identifier corresponding to the unread message on the target session interface;
the processing unit is further configured to execute acquiring different account identifiers corresponding to the unread messages in the target session according to the feature information of the target session;
and taking account identifications which are not more than the preset number in the different account identifications as target account identifications to be displayed in the target session interface.
16. The apparatus according to claim 15, wherein the obtaining unit is configured to perform obtaining the session message, and specifically includes:
the method comprises the steps of obtaining a session with a session time stamp larger than a local time stamp and feature information of the session, wherein the feature information comprises account identification, total account number, account priority, unread messages, unread message time stamps and unread message number.
17. The apparatus according to claim 15, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, and specifically includes:
ranking the unread messages in the target session based on account priority;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
18. The apparatus according to claim 15, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, and specifically includes:
sequencing the unread messages in the target session according to the time sequence of the unread message timestamps;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
19. The apparatus according to claim 15, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, and specifically includes:
sequencing the unread messages in the target session according to the total number of the unread messages sent by the account identifier;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
20. The apparatus of any one of claims 15-19,
the receiving unit is further configured to execute a display instruction for receiving the unread message in the target session;
the obtaining unit is further configured to execute obtaining of an unread message sent by at least one account identifier;
the display unit is further configured to display the at least one account identifier and the unread message sent by the at least one account identifier on a message display interface.
21. The apparatus of claim 20, further comprising an update unit,
the obtaining unit is further configured to perform obtaining of a message status of the unread message;
the updating unit is configured to update the account identifier corresponding to the unread message when the message status of the unread message is the read status;
the display unit is configured to display the updated account identifier on the target session interface.
22. A session acquisition apparatus, applied to a server, includes:
the receiving unit is configured to execute a session request instruction sent by the receiving terminal;
the acquisition unit is configured to perform acquisition of a session message;
the processing unit is configured to execute determining the type of the target session according to the total number of accounts corresponding to the target session in the session message, and acquiring an account identifier corresponding to an unread message in the target session under the condition that the type of the target session is determined to be group chat;
the sending unit is configured to send the target session and the account identifier corresponding to the unread message to the terminal;
the processing unit is further configured to execute acquiring different account identifications corresponding to the unread messages in the target session according to the feature information of the target session;
and account identifications which are not more than the preset number in the different account identifications are used as target account identifications to be displayed in the target session interface.
23. The apparatus according to claim 22, wherein the obtaining unit is configured to perform obtaining the session message, and specifically includes: and acquiring the session with the session timestamp larger than the local timestamp and the feature information of the session, wherein the feature information comprises account identification, total account number, account priority, unread messages, unread message timestamps and unread message numbers.
24. The apparatus according to claim 22, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, specifically including:
ranking the unread messages in the target session based on account priority;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
25. The apparatus according to claim 22, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, specifically including:
sequencing the unread messages in the target session according to the time sequence of the unread message timestamps;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
26. The apparatus according to claim 22, wherein the processing unit is configured to execute obtaining, according to the feature information of the target session, different account identifiers corresponding to the unread messages in the target session, specifically including:
sorting according to the total number of the account identifications corresponding to the number of the unread messages;
and extracting different account identifications corresponding to the unread messages in the target session according to the sequenced unread messages.
27. The apparatus according to any of claims 22-26, wherein the receiving unit is further configured to execute a display instruction for receiving the unread message in the target session;
the obtaining unit is further configured to execute obtaining of an unread message sent by at least one account identifier;
the sending unit is further configured to execute sending the at least one account identifier and the unread message sent by the at least one account identifier to the terminal.
28. The apparatus of claim 27, further comprising a first update unit and a second update unit,
the obtaining unit is further configured to update the message status of the unread message;
the second updating unit is configured to update the account identifier corresponding to the unread message when the message status of the unread message is the read status;
the sending unit is further configured to execute sending the updated account identifier corresponding to the unread message to the terminal.
29. A session system, characterized in that the session system comprises a server and at least one terminal; the at least one terminal comprises session displaying means according to any of the preceding claims 15-21, and the server comprises session acquiring means according to any of the preceding claims 22-28.
30. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the session display method of any one of claims 1-7 or the session acquisition method of any one of claims 8-14.
31. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the session display method of any one of claims 1-7 or the session acquisition method of any one of claims 8-14.
CN202110385352.3A 2021-04-09 2021-04-09 Session display method, session acquisition method, device, equipment, system and medium Active CN113179206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110385352.3A CN113179206B (en) 2021-04-09 2021-04-09 Session display method, session acquisition method, device, equipment, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110385352.3A CN113179206B (en) 2021-04-09 2021-04-09 Session display method, session acquisition method, device, equipment, system and medium

Publications (2)

Publication Number Publication Date
CN113179206A CN113179206A (en) 2021-07-27
CN113179206B true CN113179206B (en) 2022-11-22

Family

ID=76924940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110385352.3A Active CN113179206B (en) 2021-04-09 2021-04-09 Session display method, session acquisition method, device, equipment, system and medium

Country Status (1)

Country Link
CN (1) CN113179206B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726535A (en) * 2021-07-29 2021-11-30 维沃移动通信(杭州)有限公司 Information preview method and device and electronic equipment
CN113645129B (en) * 2021-08-24 2023-07-04 北京达佳互联信息技术有限公司 Data processing method and data processing device of instant messaging client
CN113938451B (en) * 2021-08-31 2023-05-30 北京达佳互联信息技术有限公司 Service reminding method, device, system, electronic equipment and storage medium
CN115242740A (en) * 2022-06-21 2022-10-25 亿咖通(湖北)技术有限公司 Information interaction method, device, equipment and storage medium
CN115022274B (en) * 2022-08-04 2022-10-21 广州此声网络科技有限公司 Unread message quantity statistical method and device, computer equipment and storage medium
CN115567471A (en) * 2022-08-23 2023-01-03 北京字跳网络技术有限公司 Method, device, equipment and storage medium for presenting session message

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9590929B2 (en) * 2013-04-11 2017-03-07 International Business Machines Corporation Directed message notification in chat sessions
CN106371827A (en) * 2016-08-24 2017-02-01 维沃移动通信有限公司 Message display method and terminal
TWI782955B (en) * 2017-05-12 2022-11-11 香港商阿里巴巴集團服務有限公司 Display method and device
CN107105107A (en) * 2017-06-23 2017-08-29 努比亚技术有限公司 Message display method, mobile terminal and computer-readable recording medium
CN110543269B (en) * 2019-09-06 2021-04-30 腾讯科技(深圳)有限公司 Message processing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113179206A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN113179206B (en) Session display method, session acquisition method, device, equipment, system and medium
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
US9658737B2 (en) Cross platform sharing of user-generated content
US10880398B2 (en) Information updating/exchange method, apparatus, and server
CN107135146B (en) The display methods and device of information
CN106422324B (en) Real-time communication method, the apparatus and system of multiple terminals
CN103841004B (en) Method for information display and information server
CN106940880A (en) A kind of U.S. face processing method, device and terminal device
CN106302666B (en) Data push method and device
CN106232193A (en) Use the game progress of the portion of user data retrieved
CN110928397B (en) User interface refreshing method and device, storage medium and electronic device
CN113244609A (en) Multi-picture display method and device, storage medium and electronic equipment
CN105610698B (en) The treating method and apparatus of event result
CN107018166B (en) Service display method and terminal
CN112734170A (en) Task scheduling method and device with watch
CN106789568A (en) A kind of communication information acquisition methods and device
CN106445154A (en) Method and device for providing AR content, AR equipment and server
US20140287787A1 (en) Connection System and Method to Dynamically Create and Collect a Group of Contextual Contacts
CN108958571B (en) Three-dimensional session data display method and device, storage medium and computer equipment
CN110619513A (en) Electronic resource obtaining method, electronic resource distributing method and related equipment
CN105897867A (en) Share processing method of interaction information, vehicle terminal, server and system
CN112925595A (en) Resource distribution method and device, electronic equipment and storage medium
CN105933352B (en) Method of data synchronization, client and system between client-based server
CN102123342A (en) Method for issuing position-containing information on community website and hand-held electronic device
CN113901774A (en) Information acquisition method, device and computer readable medium

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