CN114006880A - Method and device for acquiring message receipt, electronic equipment and storage medium - Google Patents

Method and device for acquiring message receipt, electronic equipment and storage medium Download PDF

Info

Publication number
CN114006880A
CN114006880A CN202111241437.0A CN202111241437A CN114006880A CN 114006880 A CN114006880 A CN 114006880A CN 202111241437 A CN202111241437 A CN 202111241437A CN 114006880 A CN114006880 A CN 114006880A
Authority
CN
China
Prior art keywords
client
session
receipt
message
index
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.)
Granted
Application number
CN202111241437.0A
Other languages
Chinese (zh)
Other versions
CN114006880B (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 Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network 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 Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202111241437.0A priority Critical patent/CN114006880B/en
Publication of CN114006880A publication Critical patent/CN114006880A/en
Application granted granted Critical
Publication of CN114006880B publication Critical patent/CN114006880B/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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Abstract

The embodiment of the disclosure discloses a method, a device, electronic equipment and a storage medium for acquiring a message receipt, wherein the method comprises the following steps: according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server and a maximum read index in a session message sent by a first client; and updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client. According to the technical scheme of the embodiment of the disclosure, frequent communication between the client and the server is avoided, the update efficiency of the receipt status is improved, and the communication resources of the client are saved.

Description

Method and device for acquiring message receipt, electronic equipment and storage medium
Technical Field
The embodiments of the present disclosure relate to software technologies and communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for acquiring a message receipt.
Background
Today, the network technology is rapidly developed, diversified social software appears in the sight of people, great convenience is brought to the life of people, and the message receipt function enables a message sender to know the reading dynamics of the opposite side more easily.
In the prior art, a receipt of a session message is usually reported to a server when a party participating in a session detects that a certain session message is read, and the server updates a receipt state of the session message in a session page of an originator of the session message.
However, in such a message receipt manner, the communication frequency between the client and the server is high, and especially when the user temporarily leaves and returns, the client accumulates a large amount of unread messages, and frequent communication between the client and the server is required, which results in low efficiency of receipt update of the session message and consumption of a large amount of communication resources.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device and a storage medium for obtaining a message receipt, so that a client updates a receipt status of a session message according to a maximum read index of other clients in a session page.
In a first aspect, an embodiment of the present disclosure provides a method for acquiring a message receipt, which is applied to a first client, and includes:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
In a second aspect, an embodiment of the present disclosure provides a method for acquiring a message receipt, which is applied to a server, and includes:
responding to a receipt updating request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the receipt updating request;
and acquiring the maximum read index of the at least one second client in the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
In a third aspect, an embodiment of the present disclosure provides an apparatus for acquiring a message receipt, which is applied to a first client, and includes:
an update request sending module, configured to send a receipt update request of a current session page to a server according to a receipt update cycle, so as to obtain, by the server, at least one second client participating in a current session and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
In a fourth aspect, an embodiment of the present disclosure provides an apparatus for acquiring a message receipt, which is applied to a server, and includes:
the update request acquisition module is used for responding to an acknowledgement update request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the acknowledgement update request;
and the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client from the at least one second client and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, which includes a memory, a processing device, and a computer program stored in the memory and executable on the processing device, where the processing device implements a method for acquiring a message receipt according to a first embodiment of the present disclosure or a method for acquiring a message receipt according to a second embodiment of the present disclosure when executing the program.
In a sixth aspect, the present disclosure provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for acquiring a message receipt of the first embodiment of the present disclosure or the method for acquiring a message receipt of the second embodiment of the present disclosure.
According to the technical scheme of the embodiment of the invention, after the client sends the receipt updating request to the server, the server acquires other clients participating in the current conversation, updates the conversation message corresponding to the maximum read index and the receipt state of the conversation message with the index smaller than the maximum read index in the conversation message sent by the current client, thereby avoiding frequent communication between the client and the server, improving the updating efficiency of the receipt state and saving the communication resources of the client.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of one embodiment of a method of obtaining a message receipt according to the present disclosure;
FIG. 2A is a flow diagram of one embodiment of a method of obtaining a message receipt according to the present disclosure;
fig. 2B is a flowchart of a method for acquiring a message receipt according to a first specific application scenario of the present disclosure;
fig. 3 is a block diagram of a structure of an apparatus for acquiring a message receipt in a third embodiment of the disclosure;
fig. 4 is a block diagram of a device for acquiring a message receipt in a fourth embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device in a fifth embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
Fig. 1 is a flowchart of a method for acquiring a message receipt according to an embodiment of the present disclosure, where this embodiment is applicable to a client updating a receipt status of a session message according to a maximum read index of another client in a session page, and this method may be executed by an apparatus for acquiring a message receipt according to a third embodiment of the present disclosure, where the apparatus may be implemented by Software and/or hardware and integrated in the client, and typically, may be integrated in an SDK (Software Development Kit) of the client, and the client may be integrated in a terminal device such as a computer or a mobile phone, where the method specifically includes the following steps:
s110, sending a receipt updating request of a current session page to a server according to a receipt updating period so as to obtain at least one second client participating in a current session through the server and a maximum read index in a session message sent by the first client; wherein the indexes of the session messages in the session page are arranged in an ascending manner.
The current conversation page is a conversation page currently displayed by the client, namely the conversation page in an activated state, and the conversation page comprises conversation messages sent by all conversation participants; if the current display of the client is not a session page, for example, the current display of the address book page of the client does not send a receipt updating request to the server, so as to reduce the communication frequency between the client and the server; the message receipt means that a session message is sent by a client, and after the session message is forwarded by a server and sent to other clients in a session page, the reading state (including unread and read) of the session message by other clients is displayed in the sending client of the session message; the message sender can determine whether the message receiver has read the conversation message through the receipt status of the message.
After acquiring the receipt updating request sent by the first client, the server determines the matched session page and the session participants in the session page according to the session page identifier in the receipt updating request, and can determine other clients (i.e. second clients) in the session page according to the client identifier of the message sender in the receipt updating request. The maximum read index is the maximum number of the session message that has been read by each client participating in the session in each session page, and if the session page includes only two session participants, for example, client a and client B, it is obvious that each client corresponds to only one maximum read index, that is, the maximum read index of client a in the session message sent by client B and the maximum read index of client B in the session message sent by client a; if the session page includes three or more session participants, for example, a client a, a client B, and a client C, the maximum read indexes of each client in the session messages sent by different clients are also different, that is, each client corresponds to multiple maximum read indexes, taking the client a as an example, the maximum read index of the client a in the session message sent by the client B is obviously different from the maximum read index of the client a in the session message sent by the client C.
The server can set a unique session page identifier for each session page according to the participants of the session and the creation time of the session, the session page identifier can be used as prefix information in a session message index, the prefix information is arranged in an ascending manner according to the sending time, and the server also records the sending party of each session message; and the server sends the maximum number of the read session messages of the session messages sent by the first client to the first client.
Specifically, the indexes of the session messages in the session page may also be arranged in an ascending order according to the difference of the senders, for example, the prefix information is still the above-mentioned session page identifier, the suffix is also arranged in an ascending order according to the sending time, and the client identifier of the session message sender is included between the prefix information and the suffix information, so that the server arranges the session messages sent by each participant in each session page in an ascending order, and the server may determine the sender of the session message directly according to the session message itself.
Optionally, in this embodiment of the present disclosure, before sending a response piece update request of a current session page to a server according to a response piece update cycle, the method further includes: and acquiring the matched response piece updating period according to the updating frequency of the session messages in the current session page and/or the number of session participants. The receipt updating period can be preset to be a fixed value, namely, each session page uses the same receipt updating period; or based on a periodic comparison table or a periodic calculation formula, and the like, according to the update frequency of the acquired session message and/or the number of session participants, acquiring a receipt update period matched with the current session page through table lookup or calculation; the faster the updating frequency of the session messages in the session page is, the more session participants are, which indicates that the activity of the user in the session page is higher, and the client configures a shorter response piece updating period for the session page, so as to improve the updating frequency of the response piece state in the active session.
S120, updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
When the user leaves and returns, the user firstly sees the recently sent unread messages and usually reads all the unread messages together, namely, a plurality of unread messages accumulated by the client, and the user usually finishes reading the unread messages in a short time; therefore, after the first client acquires the maximum read index of each second client, the session message corresponding to the maximum read index is set to be read, and the session message sent before the session message corresponding to the maximum read index is determined to be read immediately; compared with the prior art that the server needs to record the reading state of each client to each session message, and the reading state of each session message needs to be communicated with the client, in the embodiment of the disclosure, after the first client acquires the maximum read index of the second client, the first client sets the session message with the index smaller than the maximum read index as read, so that the communication frequency between the client and the server is reduced, and the update efficiency of the receipt state is improved.
The first client detects that the target session message is displayed on the current session page, and determines that the target session message in the current session page is read when a user click behavior or a sliding behavior is detected in the current session page, wherein in the embodiment of the disclosure, a detection mode for whether the session message is read is not specifically limited; when the first client detects that a certain session message in the current session page is read, the first client can directly send the index of the session message to the server, the server obtains a matched second session page according to the index of the session message, determines a target second client sending the session message in the second session page, and then the server updates the maximum read index of the first client in the session message sent by the second client.
Optionally, in this embodiment of the present disclosure, the method for acquiring a message receipt further includes: in response to detecting that a target session message in a current session page is read, determining a target second client sending the target session message; judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client side at the target second client side; and if the index of the target session message is larger than the maximum read index of the first client in the session message sent by the target second client, sending the index of the target session message to a server, so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
Specifically, the first client may locally record a maximum read index of each session message sent by the first client to each second client, where, for example, in the above technical solution, the client a records the maximum read index in the session message sent by the client B and the maximum read index in the session message sent by the client C, and when the first client detects that the target session message in the current session page is read, first determines a sender of the target session message, that is, determines the target second client, for example, determines the sender of the target session message as the client B; then judging whether the current read target session message is a session message sent after the maximum read index; if yes, sending the index of the target session message to the server, and locally updating the maximum read index in the session message sent by the client B; after acquiring the index of the target session message, the server directly updates the maximum read index in the session message sent by the client A at the client B; if not, the index of the target session message is not sent to the server, and meanwhile, the maximum read index in the session message sent by the target second client is not updated locally, so that the communication frequency between the client and the server is further reduced.
According to the technical scheme of the embodiment of the invention, after the client sends the receipt updating request to the server, the server acquires other clients participating in the current conversation, updates the conversation message corresponding to the maximum read index and the receipt state of the conversation message with the index smaller than the maximum read index in the conversation message sent by the current client, thereby avoiding frequent communication between the client and the server, improving the updating efficiency of the receipt state and saving the communication resources of the client.
Example two
Fig. 2A is a flowchart of a method for obtaining a message receipt according to a second embodiment of the present disclosure, where this embodiment is applicable to a server obtaining, according to a receipt update request sent by a client, a maximum read index of a session message sent by a current client of other clients participating in a session, and the method may be executed by a device for obtaining a message receipt according to a fourth embodiment of the present disclosure, where the device may be implemented by software and/or hardware and is integrated in the server, and the method specifically includes the following steps:
s210, responding to the receipt updating request sent by the first client, and according to the receipt updating request, obtaining the matched first session page and at least one second client participating in the current session.
S220, obtaining the maximum read index of the session message sent by the first client side from the at least one second client side, and sending the maximum read index of the at least one second client side to the first client side, so that the first client side can update the receipt state of the session message according to the maximum read index of the at least one second client side.
Optionally, in this embodiment of the present disclosure, the method for acquiring a message receipt further includes: responding to the obtained index of the target session message sent by the first client, obtaining a matched second session page according to the index of the target session message, and obtaining a target second client sending the target session message in the second session page; and updating the maximum read index of the session message sent by the first client side at the target second client side according to the index of the target session message.
Optionally, in this embodiment of the present disclosure, after updating, according to the index of the target session message, a maximum read index in the session message sent by the first client at the target second client, the method further includes: and sending the maximum read index in the session message sent by the first client at the target second client to the target second client so that the target second client updates the receipt state of the session message according to the maximum read index of the first client. If the server determines that the maximum read index of the first client in the session message sent by the target second client is updated, the server sends the maximum read index of the first client to the target second client in an active sending mode so as to ensure the timeliness of the receipt status update of the session message, and the target second client updates according to the acquired maximum read index.
According to the technical scheme of the embodiment, after the server acquires the receipt updating request sent by the first client, other clients participating in the conversation page are determined according to the matched conversation page, and the maximum read index of the other clients in the conversation message sent by the first client is sent to the first client, so that the first client updates the receipt state of the conversation message according to the maximum read index, frequent communication between the client and the server is avoided, the updating efficiency of the receipt state of the conversation message is improved, and the communication resources of the server are saved.
Specific application scenario one
Fig. 2B is a method for acquiring a message receipt provided in a specific application scenario of the present disclosure, in which a first client acquires, through a server, a second client participating in a current session, and a maximum read index in a session message sent by the first client, the method specifically includes:
a first client sends a receipt updating request of a current session page to a server; the server acquires a receipt updating request sent by a first client; the server acquires the matched first session page and a second client participating in the current session according to the receipt updating request; the server acquires the maximum read index of the second client in the session message sent by the first client; the server sends the maximum read index of the second client to the first client; the method comprises the steps that a first client side obtains a maximum read index of a second client side; and the first client updates the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the second client.
According to the technical scheme of the embodiment of the disclosure, after the first client sends the receipt updating request to the server, the server acquires the maximum read index of the second client participating in the current session in the session message sent by the first client, and the first client updates the session message corresponding to the maximum read index and the receipt state of the session message with the index smaller than the maximum read index according to the maximum read index, so that frequent communication between the client and the server is avoided, the updating efficiency of the receipt state of the session message is improved, and a large amount of communication resources are saved.
EXAMPLE III
Fig. 3 is a block diagram of a structure of an apparatus for acquiring a message receipt according to a third embodiment of the present disclosure, which specifically includes: an update request sending module 310 and a response piece status updating module 320.
An update request sending module 310, configured to send a receipt update request of a current session page to a server according to a receipt update cycle, so as to obtain, by the server, a maximum read index in a session message sent by a first client of at least one second client participating in a current session; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
the receipt status updating module 320 is configured to update, according to the maximum read index of the at least one second client, a receipt status of the session message corresponding to the maximum read index and a receipt status of the session message with an index smaller than the maximum read index.
According to the technical scheme of the embodiment of the invention, after the client sends the receipt updating request to the server, the server acquires other clients participating in the current conversation, updates the conversation message corresponding to the maximum read index and the receipt state of the conversation message with the index smaller than the maximum read index in the conversation message sent by the current client, thereby avoiding frequent communication between the client and the server, improving the updating efficiency of the receipt state and saving the communication resources of the client.
Optionally, on the basis of the foregoing technical solution, the apparatus for acquiring a message receipt further includes:
the target second client acquisition module is used for responding to the fact that the target session message in the current session page is read and determining a target second client sending the target session message;
a maximum read index judging module, configured to judge whether an index of the target session message is greater than a maximum read index in a session message sent by the target second client by the first client;
and the maximum read index reporting module is used for sending the index of the target session message to a server if the index of the target session message is greater than the maximum read index of the session message sent by the first client at the target second client, so that the server updates the maximum read index of the session message sent by the first client at the target second client according to the index of the target session message.
Optionally, on the basis of the foregoing technical solution, the apparatus for acquiring a message receipt further includes:
and the receipt updating period acquisition module is used for acquiring the matched receipt updating period according to the updating frequency of the session messages in the current session page and/or the number of the session participants.
The device can execute the method for acquiring the message receipt provided by the first embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to a method for acquiring a message receipt provided in the first embodiment of the present disclosure.
Example four
Fig. 4 is a block diagram of a structure of an apparatus for acquiring a message receipt according to a fourth embodiment of the present disclosure, which specifically includes: an update request acquisition module 410 and a maximum read index acquisition module 420.
An update request obtaining module 410, configured to, in response to obtaining a receipt update request sent by a first client, obtain, according to the receipt update request, a matched first session page and at least one second client participating in a current session;
the maximum read index obtaining module 420 is configured to obtain a maximum read index in the session message sent by the first client and sent to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
According to the technical scheme of the embodiment, after the server acquires the receipt updating request sent by the first client, other clients participating in the conversation page are determined according to the matched conversation page, and the maximum read index of the other clients in the conversation message sent by the first client is sent to the first client, so that the first client updates the receipt state of the conversation message according to the maximum read index, frequent communication between the client and the server is avoided, the updating efficiency of the receipt state of the conversation message is improved, and the communication resources of the server are saved.
Optionally, on the basis of the foregoing technical solution, the apparatus for acquiring a message receipt further includes:
the session page acquisition module is used for responding to the acquired index of the target session message sent by the first client, acquiring a matched second session page according to the index of the target session message, and acquiring a target second client sending the target session message in the second session page;
and the maximum read index updating module is used for updating the maximum read index in the session message sent by the first client side at the target second client side according to the index of the target session message.
Optionally, on the basis of the foregoing technical solution, the apparatus for acquiring a message receipt further includes:
and the maximum read index issuing module is used for sending the maximum read index in the session message sent by the first client at the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
The device can execute the method for acquiring the message receipt provided by the second embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to the method for acquiring a message receipt provided in the second embodiment of the present disclosure.
EXAMPLE five
FIG. 5 illustrates a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner; and updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client. Or responding to a receipt updating request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the receipt updating request; and acquiring the maximum read index of the at least one second client in the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module does not constitute a limitation on the module itself in some cases, for example, the maximum read index updating module may be described as "a module for updating the maximum read index in the session message sent by the first client at the target second client according to the index of the target session message". The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example 1 ] there is provided a method of acquiring a message receipt, comprising:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
In accordance with one or more embodiments of the present disclosure, [ example 2 ] there is provided the method of example 1, further comprising:
in response to detecting that a target session message in a current session page is read, determining a target second client sending the target session message;
judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client side at the target second client side;
and if the index of the target session message is larger than the maximum read index of the first client in the session message sent by the target second client, sending the index of the target session message to a server, so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
In accordance with one or more embodiments of the present disclosure, [ example 3 ] there is provided the method of example 1, further comprising:
and acquiring the matched response piece updating period according to the updating frequency of the session messages in the current session page and/or the number of session participants.
According to one or more embodiments of the present disclosure, [ example 4 ] there is provided a method of acquiring a message receipt, comprising:
responding to a receipt updating request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the receipt updating request;
and acquiring the maximum read index of the at least one second client in the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
In accordance with one or more embodiments of the present disclosure, [ example 5 ] there is provided the method of example 4, further comprising:
responding to the obtained index of the target session message sent by the first client, obtaining a matched second session page according to the index of the target session message, and obtaining a target second client sending the target session message in the second session page;
and updating the maximum read index of the session message sent by the first client side at the target second client side according to the index of the target session message.
According to one or more embodiments of the present disclosure, [ example 6 ] there is provided the method of example 5, further comprising:
and sending the maximum read index in the session message sent by the first client at the target second client to the target second client so that the target second client updates the receipt state of the session message according to the maximum read index of the first client.
According to one or more embodiments of the present disclosure, [ example 7 ] there is provided an apparatus for acquiring a message receipt, comprising:
an update request sending module, configured to send a receipt update request of a current session page to a server according to a receipt update cycle, so as to obtain, by the server, at least one second client participating in a current session and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
According to one or more embodiments of the present disclosure, [ example 8 ] there is provided the apparatus of example 7, the apparatus of obtaining a message receipt, further comprising:
the target second client acquisition module is used for responding to the fact that the target session message in the current session page is read and determining a target second client sending the target session message;
a maximum read index judging module, configured to judge whether an index of the target session message is greater than a maximum read index in a session message sent by the target second client by the first client;
and the maximum read index reporting module is used for sending the index of the target session message to a server if the index of the target session message is greater than the maximum read index of the session message sent by the first client at the target second client, so that the server updates the maximum read index of the session message sent by the first client at the target second client according to the index of the target session message.
According to one or more embodiments of the present disclosure, [ example 9 ] there is provided the apparatus of example 7, the apparatus of obtaining a message receipt, further comprising:
and the receipt updating period acquisition module is used for acquiring the matched receipt updating period according to the updating frequency of the session messages in the current session page and/or the number of the session participants.
According to one or more embodiments of the present disclosure, [ example 10 ] there is provided an apparatus for acquiring a message receipt, comprising:
the update request acquisition module is used for responding to an acknowledgement update request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the acknowledgement update request;
and the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client from the at least one second client and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
According to one or more embodiments of the present disclosure, [ example 11 ] there is provided the apparatus of example 10, the apparatus of obtaining a message receipt, further comprising:
the session page acquisition module is used for responding to the acquired index of the target session message sent by the first client, acquiring a matched second session page according to the index of the target session message, and acquiring a target second client sending the target session message in the second session page;
and the maximum read index updating module is used for updating the maximum read index in the session message sent by the first client side at the target second client side according to the index of the target session message.
According to one or more embodiments of the present disclosure, [ example 12 ] there is provided the apparatus of example 11, the apparatus of obtaining a message receipt, further comprising:
and the maximum read index issuing module is used for sending the maximum read index in the session message sent by the first client at the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
According to one or more embodiments of the present disclosure, [ example 13 ] there is provided an electronic device comprising a memory, a processing apparatus, and a computer program stored on the memory and executable on the processing apparatus, the processing apparatus implementing the method of obtaining a message receipt as in any of examples 1-3 or the method of obtaining a message receipt as in any of examples 4-6 when executing the program.
According to one or more embodiments of the present disclosure, [ example 14 ] there is provided a storage medium containing computer-executable instructions which, when executed by a computer processor, are operable to perform the method of obtaining a message receipt according to any one of examples 1-3, or the method of obtaining a message receipt according to any one of examples 4-6.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for acquiring a message receipt is applied to a first client, and comprises the following steps:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
2. The method according to claim 1, wherein the method for acquiring the message receipt further comprises:
in response to detecting that a target session message in a current session page is read, determining a target second client sending the target session message;
judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client side at the target second client side;
and if the index of the target session message is larger than the maximum read index of the first client in the session message sent by the target second client, sending the index of the target session message to a server, so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
3. The method of claim 1, further comprising, prior to sending a response piece update request for the current session page to the server according to the response piece update period:
and acquiring the matched response piece updating period according to the updating frequency of the session messages in the current session page and/or the number of session participants.
4. A method for acquiring a message receipt is applied to a server and comprises the following steps:
responding to a receipt updating request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the receipt updating request;
and acquiring the maximum read index of the at least one second client in the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
5. The method of claim 4, wherein the method for obtaining the message receipt further comprises:
responding to the obtained index of the target session message sent by the first client, obtaining a matched second session page according to the index of the target session message, and obtaining a target second client sending the target session message in the second session page;
and updating the maximum read index of the session message sent by the first client side at the target second client side according to the index of the target session message.
6. The method of claim 5, after updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message, further comprising:
and sending the maximum read index in the session message sent by the first client at the target second client to the target second client so that the target second client updates the receipt state of the session message according to the maximum read index of the first client.
7. An apparatus for acquiring a message receipt, applied to a first client, includes:
an update request sending module, configured to send a receipt update request of a current session page to a server according to a receipt update cycle, so as to obtain, by the server, at least one second client participating in a current session and a maximum read index in a session message sent by the first client; wherein, the indexes of the session messages in the session page are arranged in an ascending manner;
and the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
8. An apparatus for acquiring a message receipt, applied to a server, includes:
the update request acquisition module is used for responding to an acknowledgement update request sent by a first client, and acquiring a matched first session page and at least one second client participating in the current session according to the acknowledgement update request;
and the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client from the at least one second client and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
9. An electronic device comprising a memory, processing means and a computer program stored on the memory and executable on the processing means, characterized in that the processing means, when executing the program, implements the method for obtaining a message receipt according to any of claims 1-3 or implements the method for obtaining a message receipt according to any of claims 4-6.
10. A storage medium containing computer executable instructions for performing the method of retrieving a message receipt according to any one of claims 1-3, or the method of retrieving a message receipt according to any one of claims 4-6, when executed by a computer processor.
CN202111241437.0A 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium Active CN114006880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111241437.0A CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111241437.0A CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114006880A true CN114006880A (en) 2022-02-01
CN114006880B CN114006880B (en) 2023-06-27

Family

ID=79923845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111241437.0A Active CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114006880B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948050A (en) * 2017-11-08 2018-04-20 用友网络科技股份有限公司 A kind of device and method that group message read states are provided
CN108011812A (en) * 2018-01-16 2018-05-08 吉浦斯信息咨询(深圳)有限公司 Realize that message in instant messaging has read the method and system of unread state synchronization
CN108449261A (en) * 2018-03-19 2018-08-24 腾讯科技(深圳)有限公司 Message prompt method, message version processing method, device and storage medium
WO2018214865A1 (en) * 2017-05-25 2018-11-29 南京中兴新软件有限责任公司 Processing method for message acknowledgement, related apparatus, storage medium and processor
CN109067910A (en) * 2018-09-13 2018-12-21 乐蜜有限公司 A kind of method and device that message pulls
WO2019038232A1 (en) * 2017-08-22 2019-02-28 Unify Patente Gmbh & Co. Kg Computer-implemented method for controlling a collaboration platform, communication and collaboration application, and communication and collaboration platform
CN110719145A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Method and device for sending read receipt and computer readable storage medium
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
US20210126886A1 (en) * 2019-10-28 2021-04-29 Microsoft Technology Licensing, Llc Coordinated unread count for email applications

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018214865A1 (en) * 2017-05-25 2018-11-29 南京中兴新软件有限责任公司 Processing method for message acknowledgement, related apparatus, storage medium and processor
WO2019038232A1 (en) * 2017-08-22 2019-02-28 Unify Patente Gmbh & Co. Kg Computer-implemented method for controlling a collaboration platform, communication and collaboration application, and communication and collaboration platform
CN107948050A (en) * 2017-11-08 2018-04-20 用友网络科技股份有限公司 A kind of device and method that group message read states are provided
CN108011812A (en) * 2018-01-16 2018-05-08 吉浦斯信息咨询(深圳)有限公司 Realize that message in instant messaging has read the method and system of unread state synchronization
CN108449261A (en) * 2018-03-19 2018-08-24 腾讯科技(深圳)有限公司 Message prompt method, message version processing method, device and storage medium
CN110719145A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Method and device for sending read receipt and computer readable storage medium
CN109067910A (en) * 2018-09-13 2018-12-21 乐蜜有限公司 A kind of method and device that message pulls
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
US20210126886A1 (en) * 2019-10-28 2021-04-29 Microsoft Technology Licensing, Llc Coordinated unread count for email applications

Also Published As

Publication number Publication date
CN114006880B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN109688051B (en) Session list display method and device and electronic equipment
CN110851035B (en) Session message display method and device, electronic equipment and storage medium
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN110658961A (en) Information display method and device and electronic equipment
CN114461313A (en) Information display method and device and electronic equipment
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN111614759B (en) Resource sharing method and device, electronic equipment and computer readable medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN114217707A (en) Sharing method, sharing device, electronic equipment, storage medium and computer program product
CN110674481B (en) Account registration method, device, equipment and storage medium of application program
CN111309496A (en) Method, system, device, equipment and storage medium for realizing delay task
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111262778B (en) Invitation link information processing method and device, electronic equipment and readable medium
CN111367689A (en) Interactive prompt information sending method and device of online document and electronic equipment
CN114006880B (en) Method and device for acquiring message receipt, electronic equipment and storage medium
CN111241443A (en) Method and device for pushing information and electronic equipment
CN112131832A (en) Method and device for reminding task state of online document and electronic equipment
CN112100205A (en) Data processing method, device, equipment and computer readable medium
CN111444457A (en) Data distribution method and device, storage medium and electronic equipment
CN112306317A (en) Unread message notification method and device and electronic equipment
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN115114051B (en) Node communication method, device, equipment and storage medium
CN113612676B (en) Social group message synchronization method, device, equipment and storage medium
CN111083196B (en) Information forwarding method and device and electronic equipment

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