CN109768918B - Method and apparatus for implementing instant messaging - Google Patents

Method and apparatus for implementing instant messaging Download PDF

Info

Publication number
CN109768918B
CN109768918B CN201910040193.6A CN201910040193A CN109768918B CN 109768918 B CN109768918 B CN 109768918B CN 201910040193 A CN201910040193 A CN 201910040193A CN 109768918 B CN109768918 B CN 109768918B
Authority
CN
China
Prior art keywords
recipient
message
online
response
user
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
CN201910040193.6A
Other languages
Chinese (zh)
Other versions
CN109768918A (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.)
Shenzhen Handa Cloud Technology Co ltd
Original Assignee
Beijing JOnath 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 JOnath Network Technology Co ltd filed Critical Beijing JOnath Network Technology Co ltd
Priority to CN201910040193.6A priority Critical patent/CN109768918B/en
Publication of CN109768918A publication Critical patent/CN109768918A/en
Application granted granted Critical
Publication of CN109768918B publication Critical patent/CN109768918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Methods and apparatus for enabling instant messaging are disclosed. The method comprises the following steps: receiving, at a sender, an intent of a first user to determine a current online recipient; in response to receiving the intent, determining a list of recipients; and in response to a selection by the first user of at least one recipient in the list of recipients and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each content message configured to cause each recipient to: upon receiving the content message, presenting an identification block associated with the message on a display area in a system in which the recipient resides, the identification block having a higher display priority relative to other applications running in the system; and displaying the content message in a separate presentation block in the display area based on operation of the identification block by a second user, the sender and each recipient being identified based on a unique identification code of a device running an instant messaging client.

Description

Method and apparatus for implementing instant messaging
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for implementing instant messaging.
Background
With the rapid development of computer technology and communication technology, instant messaging plays an increasingly important role in people's daily life, study and work. However, existing methods of instant messaging suffer from a number of drawbacks, particularly as follows.
(1) In existing methods of instant messaging, various messages transmitted from user to user are presented in the same place through system tray icons, so that the presented messages are displayed to the user out of order and stacked. This directly results in users not being able to efficiently view and process the messages in a timely manner. For example, because all messages are not categorized and differentiated, users cannot timely view and process important messages.
(2) Existing instant messaging approaches concentrate all chats in one window, which can cause new messages to continuously overwhelm old messages as the user continuously receives multiple messages. This directly results in new non-essential messages constantly disturbing the user, whereas old essential messages are very easy to ignore by the user.
(3) Since existing methods of instant messaging communicate accounts based on accounts, when a user has multiple user devices and logs in to the multiple user devices using the same account, the multiple user devices receive a prompt when receiving a message, which may cause a large interference to the user. For example, if the user is out but the company's computer and cell phone are logged on to the account at the same time, then the computer may prefer that the cell phone receive the message and that the message is marked as read, so that the cell phone may not receive the prompt. This directly results in the inability of users to view messages instantly, which affects communication and exchange between users.
(4) Since the existing instant messaging messages are stored and forwarded through the server, security and privacy of instant messaging may not be guaranteed. The bandwidth is different between different users, the bandwidth of the server is different, and the server delay is different in different regions, thereby causing the delay of sending and receiving the message. For example, when a file is transferred between users, a sender needs to upload the file to a server first and then download the file from the server to a receiver, and since bandwidths of the sender, the server, and the receiver are different, delay and the like may greatly affect the transfer speed and the immediacy.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for implementing instant messaging, which can efficiently view and process messages in real time.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for implementing instant messaging. The method comprises the following steps: receiving, at a sender, an intent of a first user to determine a current online recipient; in response to receiving the first user's intent, determining a list of recipients; and in response to a selection by the first user of at least one recipient in the list of recipients and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each of the at least one content message configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in a separate presentation block in the display area based on operation of the identification block by a second user, wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
Optionally, determining the list of recipients may include: sending a broadcast message to potential devices within the network; in response to receiving a response message to the broadcast message from one or more online devices within the network, sending an online confirmation message to each online device confirming whether an instant messaging client is online; and for each of the one or more online devices, in response to receiving a positive response to the online confirmation message from the device, identifying an instant messaging client associated with the device as an online recipient.
Optionally, determining the recipient list may further include: sending an online confirmation message for confirming whether the instant messaging client is online to one or more potential online devices within the network based on a network address segment of the network; in response to receiving a positive response to the online confirmation message from each potential online device, identifying the instant messaging client associated with that device as an online recipient.
Optionally, the network is a local area network and the at least one content message is sent from the sender to the at least one recipient via end-to-end direct message communication.
Optionally, the method may further include: determining whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the messages; in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all received messages in the display area; in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of: displaying no more than the threshold number of messages in the display area; and hiding at least one of the received messages in a collapsed or scrolling manner.
Optionally, the identification block may identify a particular user associated with the sender of the message and the number of messages that the sender sent to the recipient that are currently unread.
According to another aspect of an embodiment of the present invention, an apparatus for enabling instant messaging is provided. The device includes: a receiving module for receiving, at a sender, an intent of a first user to determine a current online recipient; a first determination module to determine a recipient list in response to receiving the first user's intent; a sending module, configured to send at least one content message to at least one recipient in the recipient list in response to a selection of the at least one recipient by the first user and a message sending instruction made by the first user, each of the at least one content message configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in a separate presentation block in the display area based on operation of the identification block by a second user, wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
Optionally, the first determining module may be configured to: sending a broadcast message to potential devices within the network; in response to receiving a response message to the broadcast message from one or more online devices within the network, sending an online confirmation message to each online device confirming whether an instant messaging client is online; for each of the one or more online devices, in response to receiving a positive response to the online confirmation message from the device, identifying an instant messaging client associated with the device as an online recipient.
Optionally, the first determining module may be configured to: sending an online confirmation message for confirming whether the instant messaging client is online to one or more potential online devices within the network based on a network address segment of the network; in response to receiving a positive response to the online confirmation message from each potential online device, identifying the instant messaging client associated with that device as an online recipient.
Alternatively, the network may be a local area network and the at least one content message may be sent from the sender to the at least one recipient via end-to-end direct message communication.
Optionally, the apparatus may further include a second determination module to determine whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the message; in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all received messages in the display area; in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of: displaying no more than the threshold number of messages in the display area; and hiding at least one of the received messages in a collapsed or scrolling manner.
According to yet another aspect of an embodiment of the present invention, an electronic device for enabling instant messaging is provided. The electronic device includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to perform the methods provided in accordance with embodiments of the present invention.
According to yet another aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the method provided according to an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a flow diagram of a method for implementing instant messaging according to an embodiment of the present invention;
FIG. 2A is one example of a user interface of an instant messaging client in accordance with an embodiment of the present invention;
FIG. 2B is another example of a user interface of an instant messaging client, according to an embodiment of the present invention;
FIG. 2C is yet another example of a user interface of an instant messaging client, according to an embodiment of the present invention;
FIG. 3 is another flow diagram of a method for implementing instant messaging according to an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for enabling instant messaging according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed; and
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method for implementing instant message communication according to an embodiment of the present invention, and as shown in fig. 1, the method for implementing instant message communication according to an embodiment of the present invention includes steps S101, S102, and S103.
Step S101: an intent of a first user to determine a current online recipient is received at a sender.
The sender is used to determine the current online recipient by receiving the first user's intent. For example, the intention may be a certain character entered by the first user, such as the @ key, or a combination of certain several characters entered by the first user, such as a combination of the ctrl key and the tab key, etc. The sender initiates the step of determining the current online recipient by receiving the intent.
Step S102: determining a recipient list in response to the received intent of the first user.
In one example, the sender enters a message mode by receiving an intention of the first user. In this message mode, the sender sends a broadcast message to potential devices within the network. The sender transmits an online confirm message for confirming whether the instant messaging client is online to each online device in response to receiving a response message for the broadcast message from one or more online devices within the network. The sender then identifies, for each of the one or more online devices, an instant messaging client associated with the device as an online recipient in response to receiving a positive response from the device to the online confirmation message. For example, the sender may enter the message mode upon receiving @ of the first user input. In the messaging mode, a sender sends a broadcast message to all devices (which may be mobile terminals, laptops, desktops, personal digital assistants, etc.) within a network (which may be any local area network segment known in the art, e.g., 192.158.55.x, etc.), then sends an online confirmation message to each online device confirming whether an instant messaging client is online in response to receiving a response message to the broadcast message from one or more online devices within the network (which may be multiple desktops within the local area network), and then identifies, for each of the one or more online devices, an instant messaging client associated with the device as an online recipient in response to receiving a positive response to the online confirmation message from the device.
In another example, a sender sends an online confirmation message to one or more potential online devices within a network to confirm whether an instant messaging client is online based on a network address segment of the network. The sender, in response to receiving a positive response to the online confirmation message from each potential online device, identifies the instant messaging client associated with that device as the online recipient. For example, if the network is a local area network configured with segment 192.168.55.x, the sender may send an online confirm message to one or more potential online devices within the segment confirming whether the instant messaging client is online based on all IPs within the segment (e.g., from 192.168.55.0 to 192.168.55.254), and then the sender identifies the instant messaging client associated with each potential online device as an online recipient in response to receiving a positive response to the online confirm message from that device.
The network may be a local area network, for example, a local area network with segment 192.158.55.x or 192.168.54.x, and the local area network of the present invention is not limited to the above-mentioned segment and may exist in a plurality of segments at the same time.
The at least one content message is sent from the sender to the at least one recipient via end-to-end direct messaging. For example, after establishing an end-to-end direct connection from a sender to a recipient, a content message may be transmitted directly from the sender to the recipient. This establishes device-to-device direct communication without adding a buddy action.
Step S103: in response to a selection by the first user of at least one recipient in the recipient list and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each of the at least one content message configured to cause each of the at least one recipient to:
presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and
displaying the content message within a separate presentation block in the display area based on an operation of the identification block by a second user,
wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
After the first user determines the recipient list, the first user selects a desired recipient from the recipient list to send a message to. For example, the first user first enters @ in an input box of the instant messaging client to present a portion of the recipient list below the input box. If the desired recipient is not found in a portion of the list of recipients, the first user may continue to enter text in the input box to further search for the desired recipient. For example, if the first user wants to send a message to "clark", the first user enters @inthe input box, and only "aaaaa", "aaabb", and "aaacc", etc. are presented in the lower list of the input box without "clark", the first user may continue to enter the text "c" after the @ key to present a new recipient list, such as "clark", "coco", and "czzb", etc., below the input box to quickly find the desired recipient "clark".
After finding the desired recipient, the first user fixes the recipient in the pending send zone. In this context, the "region to be sent" may refer to a part of the area adjacent to the input box, for example, a part of the area above the input box, a part of the area below the input box, a part of the area to the left of the input box, or a part of the area to the right of the input box. The first user may view the selected recipient directly in the pending send area and/or quickly delete the selected recipient or perform some other operation to complete the selection of the recipient. If the first user has completed the recipient's selection, the first user may send a message to the selected recipient.
The message sent may be a text message or a non-text message.
If the message sent is a text message, the first user may enter text directly in the input box to send the message to all selected recipients. For example, if the first user has selected three recipients, such as "click", "simon" or "rabbitt", the first user may enter "today's noon me please a, yang fu hotpot" in an input box to send a message "today's noon me please a, yang fu hotpot" to the three recipients simultaneously.
If the message sent is a non-text message, the first user first sends a piece of UDP data to the selected recipient to inform the recipient that the message to be received is a non-text message and waits for the recipient's next action. If the recipient performs the operation of receiving the non-text message, the first user typically compresses the non-text message, then breaks the compressed non-text message into a plurality of fixed size packets, and sends the packets to the selected recipient via the UDP protocol.
In the process of transmitting the data packets, the data packets may be transmitted in a single thread transmission mode or a multi-thread transmission mode. The single-thread sending mode refers to that a sender sends the data packets to the sender through one thread, and the multi-thread sending mode refers to that the sender sends the data packets to a receiver through a plurality of threads simultaneously.
Upon receiving the content message, an identification block associated with the message is presented on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system. The identification block acquires the display priority of the display area immediately after the recipient receives the message, regardless of what application the recipient is currently executing, and therefore has a higher display priority relative to other applications currently running in the system. Therefore, the user can find in real time the notification of the reception of the unread message.
The identification block identifies a particular user associated with a sender of the message and the number of currently unread messages the sender sends to the recipient. By means of the identification block, the sender of the message and the number of messages sent by the sender to the receiver have been unambiguously identified, and based on the above-mentioned message classification, the user can efficiently identify and process messages in time. The number of messages may be identified anywhere in the identification block, such as identifying an upper left region, a lower left region, an upper right region, a lower right region, etc. of the block.
In another embodiment, several presentation blocks are determined to be displayed simultaneously on the display area based on the number of messages. The maximum number of simultaneous displays of a presentation block depends on the size of the display area and the length of the message. The size of the display area depends on the width and height of the display area. If the size of the display area is fixed, the smaller the length of the message, the larger the maximum number of messages that can be simultaneously displayed in the display area, and vice versa. If the length of the message is fixed, the larger the size of the display area is, the larger the maximum number of messages that can be simultaneously displayed in the display area is, and vice versa. The received messages may be displayed simultaneously in any position of the display area, preferably in the middle of the display area, in chronological order in said display area. In another embodiment, in each individual presentation block, the recipient may close the message by closing the button or quickly reply to the message by clicking on the button.
The sender and each recipient are identified based on a unique identification code of a device running the instant messaging client. Therefore, compared with the traditional instant messaging communication in which friends need to be added to each other, the method disclosed by the invention does not need to perform the operation of adding friends among users, thereby facilitating the rapid establishment of communication among users. In contrast to conventional communication for establishing a group chat, with the method of the present disclosure, in the case where one sender sends a message to a plurality of recipients, the message sent by each of the plurality of recipients individually sends a reply message to the sender without the remaining recipients of the plurality of recipients receiving the reply message. This greatly protects privacy between users.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
A method for implementing instant messaging according to an embodiment of the present invention is described below, with exemplary reference to fig. 2A-2C.
Fig. 2A is an example of a user interface of an instant messaging client according to an embodiment of the present invention, and as shown in fig. 2A, a display area of an example of a user interface of an instant messaging client according to an embodiment of the present invention includes an identification block 210.
In one embodiment, the identification block 210 is used to identify a particular user associated with the sender of the message and the number of currently unread messages that the sender sends to the recipient. For example, if there are three current unread messages received and all from one sender, such as "clark", the identification block 210 displays an avatar for "clark" and identifies the number of messages as 3 in the avatar. In one example, upon receiving a message, the second user may display the message in a presentation block of the display area by operating (e.g., clicking, double clicking, touching, etc.) the identification block. In another example, upon receiving a plurality of messages but the number of messages does not exceed the maximum number of simultaneous displays of the presentation blocks, the second user may display the messages within separate presentation blocks of the display area by operating on the identification block, wherein each presentation block displays one message. In yet another example, upon receiving a plurality of messages but the number of messages exceeds the maximum number of simultaneous displays of the presentation blocks, the second user may display in the display area at least one of a message not exceeding the maximum number of simultaneous displays of the presentation blocks and/or hide the received messages in a collapsed or scrolling manner by operating on an identification block, wherein each presentation block displays one message.
Fig. 2B is another example of a user interface of an instant messaging client according to an embodiment of the present invention, and as shown in fig. 2B, a display area of another example of a user interface of an instant messaging client according to an embodiment of the present invention includes a presentation block 220.
In one embodiment, there may be multiple presentation blocks 220. In FIG. 2B, three display tiles 220 are shown1,2202,2203However, the present disclosure is not limited thereto, and more than one presentation block may exist, or one presentation block or two presentation blocks may also exist. Display block 2201,2202,2203Each of which may further include a message content display area 2201, a close button 2202, and an enter button 2203. The message content display area 2201 is used to display the content of a content message, for example, "do a meal? Something hungry "," soon o, wait you! | A | A "," not yet, we wait you down the floor ", and so on. A close button 2202 is used to close the display block. The enter button "2203" is used to quickly reply to the content message. All received content messages are deleted by clicking the close button in the presentation block and are not saved locally. The second user may reply to the content message in the corresponding presentation block. This is different from a conventional display block in which a plurality of content messages are displayed in the same display block, which is inconvenient for a user to reply to each specific content message and is not conducive to communication between users. Through the presentation block of the invention, users can perform independent operations, such as deletion, reply and the like, aiming at each content message, so as to facilitate the communication among the users.
Fig. 2C is yet another example of a user interface of an instant messaging client according to an embodiment of the present invention, which, as shown in fig. 2C, includes an input module 230 and a pending send area 240.
In one embodiment, the input module 230 may be used to determine an online recipient list and to select one or more recipients, such as recipients "click", "simon" or "rabbitt". In addition, the input module 230 may be further configured to send a content message, such as "today am i am o, Yang Guofu hotpot", to the selected one or more recipients. The pending transmission area 240 is for storing the selected recipient and is located above, below, to the left, or to the right, preferably above, the input module 230. The first user may select one or more recipients by entering the @ key and further entering text and place the selected recipients in pending send area 240 and then simultaneously send the content message to the selected recipients.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
FIG. 3 is yet another flow diagram of a method for implementing instant messaging in accordance with an embodiment of the present invention; as shown in fig. 3, still another flowchart of a method for implementing instant message communication according to an embodiment of the present invention includes steps S301, S302, S303, S304, S305, and S306.
Step S301: an intent of a first user to determine a current online recipient is received at a sender.
Step S302: in response to receiving the first user's intent, a list of recipients is determined.
Step S303: in response to a selection by the first user of at least one recipient in the recipient list and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each of the at least one content message configured to cause each of the at least one recipient to:
presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and
displaying the content message within a separate presentation block in the display area based on an operation of the identification block by a second user,
wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
Step S304: determining whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the message.
Step S305: in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all of the received messages in the display area.
Step S306: in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of:
displaying no more than the threshold number of messages in the display area; and
hiding at least one of the received messages in a collapsed or scrolling manner.
Optionally, the identification block identifies a particular user associated with a sender of the message and a number of currently unread messages sent by the sender to the recipient.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
Fig. 4 is a block diagram of an apparatus for implementing instant message communication according to an embodiment of the present invention, and as shown in fig. 4, an apparatus 400 for implementing instant message communication according to an embodiment of the present invention includes:
a receiving module 401, configured to receive, at a sender, an intention of a first user to determine a current online recipient;
a first determining module 402 for determining a recipient list in response to receiving the first user's intent;
a sending module 403, configured to send, in response to a selection of at least one recipient in the recipient list by the first user and a message sending instruction made by the first user, at least one content message to the at least one recipient, each of the at least one content message being configured to cause each of the at least one recipient to:
presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and
displaying the content message within a separate presentation block in the display area based on an operation of the identification block by a second user,
wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
Optionally, the first determining module 401 is further configured to:
sending a broadcast message to potential devices within the network;
in response to receiving a response message to the broadcast message from one or more online devices within the network, sending an online confirmation message to each online device confirming whether an instant messaging client is online;
for each of the one or more online devices, in response to receiving a positive response to the online confirmation message from the device, identifying an instant messaging client associated with the device as an online recipient.
Optionally, the first determining module 401 is further configured to:
sending an online confirmation message for confirming whether the instant messaging client is online to one or more potential online devices within the network based on a network address segment of the network;
in response to receiving a positive response to the online confirmation message from each potential online device, identifying the instant messaging client associated with that device as an online recipient.
Optionally, wherein the network is a local area network and the at least one content message is sent from the sender to the at least one recipient via end-to-end direct message communication.
Optionally, the apparatus further comprises a second determining module 404, configured to:
determining whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the message;
in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all of the received messages in the display area;
in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of:
displaying no more than the threshold number of messages in the display area; and
hiding at least one of the received messages in a collapsed or scrolling manner.
Optionally, the identification block identifies a particular user associated with a sender of the message and a number of currently unread messages sent by the sender to the recipient.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
Fig. 5 illustrates an exemplary system architecture 500 for implementing methods and apparatus for instant messaging in which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages, etc. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for streaming websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and perform other processing on the received data such as the information query request, and feed back a processing result (for example, target push information and product information — just an example) to the terminal device.
It should be noted that the method for implementing instant message communication provided by the embodiment of the present invention is generally executed by the terminal devices 501, 502, 503, and accordingly, the apparatus for implementing instant message communication is generally disposed in the terminal devices 501, 502, 503.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments 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 embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention 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 invention, 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 the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 invention. 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a determination module, a selection module, a presentation module, and a display module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, a determination module may also be described as a "module that determines an online recipient list".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving, at a sender, an intent of a first user to determine a current online recipient; in response to receiving the first user's intent, determining a list of recipients; and in response to a selection by the first user of at least one recipient in the list of recipients and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each of the at least one content message configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in a separate presentation block in the display area based on operation of the identification block by a second user, wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client. The method of the invention can enable the user to efficiently check and process the message in real time.
One embodiment of the above invention has the following advantages or benefits: because the sender and each receiver are identified based on the unique identification code of the equipment running the instant message communication client, the method and the device realize the accurate communication of the equipment without adding friend operation. Each of the at least one content message is configured to cause each of the at least one recipient to: presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and displaying the content message in an independent display block in the display area based on the operation of the identification block by the second user, so that the user can view the message in time and process the message quickly.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for enabling instant messaging, comprising:
receiving, at a sender, an intent of a first user to determine a current online recipient;
in response to receiving the first user's intent, determining a list of recipients, wherein determining the list of recipients comprises:
sending a broadcast message to potential devices within the network;
in response to receiving a response message to the broadcast message from one or more online devices within the network, sending an online confirmation message to each online device confirming whether an instant messaging client is online; and
for each of the one or more online devices, in response to receiving a positive response to the online confirmation message from the device, identifying an instant messaging client associated with the device as an online recipient; and
in response to a selection by the first user of at least one recipient in the recipient list and a message sending instruction by the first user, sending at least one content message to the at least one recipient, each of the at least one content message configured to cause each of the at least one recipient to:
presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and
displaying the content message within a separate presentation block in the display area based on an operation of the identification block by a second user,
wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
2. The method of claim 1, wherein determining a list of recipients comprises:
sending an online confirmation message for confirming whether the instant messaging client is online to one or more potential online devices within the network based on a network address segment of the network;
in response to receiving a positive response to the online confirmation message from each potential online device, the instant messaging client associated with that device is identified as the online recipient.
3. The method of claim 1 or 2, wherein the network is a local area network and the at least one content message is sent from the sender to the at least one recipient via end-to-end direct message communication.
4. The method of claim 1, further comprising:
determining whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the messages;
in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all received messages in the display area;
in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of:
displaying no more than the threshold number of messages in the display area; and
hiding at least one of the received messages in a collapsed or scrolling manner.
5. The method of claim 1, wherein the identification block identifies a particular user associated with a sender of the message and a number of currently unread messages that the sender sent to the recipient.
6. An apparatus for enabling instant messaging, comprising:
a receiving module configured to receive, at a sender, an intent of a first user to determine a current online recipient;
a first determination module configured to determine a recipient list in response to receiving the first user's intent, wherein the first determination module is further configured to:
sending a broadcast message to potential devices within the network;
in response to receiving a response message to the broadcast message from one or more online devices within the network, sending an online confirmation message to each online device confirming whether an instant messaging client is online; and
for each of the one or more online devices, in response to receiving a positive response to the online confirmation message from the device, identifying an instant messaging client associated with the device as an online recipient; and
a sending module configured to send at least one content message to at least one recipient in the list of recipients in response to a selection of the at least one recipient by the first user and a message sending instruction by the first user, wherein each of the at least one content message is configured to cause each of the at least one recipient to:
presenting, after receiving the content message, an identification block associated with the message on a display area in a system in which the recipient resides, wherein the identification block has a higher display priority relative to other applications currently running in the system; and
displaying the content message within a separate presentation block in the display area based on an operation of the identification block by a second user,
wherein the sender and each recipient are identified based on a unique identification code of a device running the instant messaging client.
7. The apparatus of claim 6, wherein the first determination module is further configured to:
sending an online confirmation message for confirming whether the instant messaging client is online to one or more potential online devices within the network based on a network address segment of the network;
in response to receiving a positive response to the online confirmation message from each potential online device, the instant messaging client associated with that device is identified as the online recipient.
8. The apparatus of claim 6 or 7, wherein the network is a local area network and the at least one content message is sent from the sender to the at least one recipient via end-to-end direct message communication.
9. The apparatus of claim 6, further comprising a second determination module, the second determination module further configured to:
determining whether a number of messages received by the recipient exceeds a threshold, the threshold being determined based at least on a size of the display area and a length of the messages;
in response to determining that the number of messages received by the recipient does not exceed the threshold, displaying all received messages in the display area;
in response to determining that the number of messages received by the recipient exceeds the threshold, performing one or more of:
displaying no more than the threshold number of messages in the display area; and
hiding at least one of the received messages in a collapsed or scrolling manner.
10. The apparatus of claim 6, wherein the identification block identifies a particular user associated with a sender of the message and a number of currently unread messages that the sender sent to the recipient.
11. An electronic device for enabling instant messaging, comprising:
one or more processors;
a storage device to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN201910040193.6A 2019-01-16 2019-01-16 Method and apparatus for implementing instant messaging Active CN109768918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910040193.6A CN109768918B (en) 2019-01-16 2019-01-16 Method and apparatus for implementing instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910040193.6A CN109768918B (en) 2019-01-16 2019-01-16 Method and apparatus for implementing instant messaging

Publications (2)

Publication Number Publication Date
CN109768918A CN109768918A (en) 2019-05-17
CN109768918B true CN109768918B (en) 2022-06-24

Family

ID=66452336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910040193.6A Active CN109768918B (en) 2019-01-16 2019-01-16 Method and apparatus for implementing instant messaging

Country Status (1)

Country Link
CN (1) CN109768918B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855551B (en) * 2019-10-29 2022-04-12 维沃移动通信有限公司 Message reply method, server and electronic equipment
CN111010447A (en) * 2019-12-23 2020-04-14 北京奇艺世纪科技有限公司 Data communication method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014022A (en) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 Method, apparatus and system for transmitting files in instant messaging tool
CN102035655A (en) * 2009-09-30 2011-04-27 中兴通讯股份有限公司 Implementation method for end-to-end instant messaging, and end-to-end instant messaging terminal and system
CN105516357A (en) * 2016-01-15 2016-04-20 青岛海尔智能家电科技有限公司 Method and device for establishing network group
CN105530231A (en) * 2014-10-24 2016-04-27 阿里巴巴集团控股有限公司 Method and device for providing charging information
CN106603806A (en) * 2016-09-12 2017-04-26 努比亚技术有限公司 Mobile terminal and message display method thereof
CN107424089A (en) * 2017-04-27 2017-12-01 东莞市富卡网络科技有限公司 Estate management server, community's interaction client and platform
CN107609168A (en) * 2017-09-27 2018-01-19 珠海市魅族科技有限公司 Processing method and processing device, computer installation and the readable storage medium storing program for executing of social information
CN108834122A (en) * 2018-07-02 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of bluetooth recognition method, apparatus, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512407B2 (en) * 2001-03-26 2009-03-31 Tencent (Bvi) Limited Instant messaging system and method
US9953282B2 (en) * 2007-09-04 2018-04-24 International Business Machines Corporation System and method for providing automatic task assignment and notification
US20100306043A1 (en) * 2009-05-26 2010-12-02 Robert Taaffe Lindsay Measuring Impact Of Online Advertising Campaigns
CN108092950B (en) * 2016-11-23 2023-05-23 深圳脸网科技有限公司 AR or MR social method based on position
CN109218038B (en) * 2018-09-05 2022-03-01 四川译讯信息科技有限公司 Multi-language instant session platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014022A (en) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 Method, apparatus and system for transmitting files in instant messaging tool
CN102035655A (en) * 2009-09-30 2011-04-27 中兴通讯股份有限公司 Implementation method for end-to-end instant messaging, and end-to-end instant messaging terminal and system
CN105530231A (en) * 2014-10-24 2016-04-27 阿里巴巴集团控股有限公司 Method and device for providing charging information
CN105516357A (en) * 2016-01-15 2016-04-20 青岛海尔智能家电科技有限公司 Method and device for establishing network group
CN106603806A (en) * 2016-09-12 2017-04-26 努比亚技术有限公司 Mobile terminal and message display method thereof
CN107424089A (en) * 2017-04-27 2017-12-01 东莞市富卡网络科技有限公司 Estate management server, community's interaction client and platform
CN107609168A (en) * 2017-09-27 2018-01-19 珠海市魅族科技有限公司 Processing method and processing device, computer installation and the readable storage medium storing program for executing of social information
CN108834122A (en) * 2018-07-02 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of bluetooth recognition method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN109768918A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
US11991124B2 (en) Chat-enabled messaging
US20170109013A1 (en) Method for organizing group icon in messenger service, and apparatus therefor
US8516049B2 (en) Administering instant messaging (‘IM’) chat sessions
US20110202853A1 (en) Contact objects
US20180287984A1 (en) System and method for tracking ongoing group chat sessions
WO2022017107A1 (en) Information processing method and apparatus, computer device and storage medium
US20150032809A1 (en) Conference Session Handoff Between Devices
CN112035202B (en) Method and device for displaying friend activity information, electronic equipment and storage medium
US20070239830A1 (en) Method and apparatus for instant message notification and forwarding
US9332406B2 (en) Method, apparatus, and system for updating contact information
US8909715B2 (en) References to history points in a chat history
US8635561B1 (en) System and method for sorting electronic documents
CN113504859A (en) Transmission method and device
CN109768918B (en) Method and apparatus for implementing instant messaging
US9871833B2 (en) Adjusting the display of social media updates to varying degrees of richness based on environmental conditions and importance of the update
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
US9148395B2 (en) Displaying message content differential in popup window
CN113676395B (en) Information processing method, related device and readable storage medium
CN112235412A (en) Message processing method and device
KR102212072B1 (en) Method for extracting of keyword in instant messenger, apparatus and system for the same
CN110704151A (en) Information processing method and device and electronic equipment
CN112153754B (en) Point-to-point connection method and device, electronic equipment and storage medium
US20230004261A1 (en) Data processing method, terminal device and server device
US8972386B2 (en) Dynamic routing of instant message
CN113014404A (en) Message transmission method and device, server and second client

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
TR01 Transfer of patent right

Effective date of registration: 20240514

Address after: 518000 609, Block T2-B, High tech Industrial Village, No. 022, Gaoxin South 7th Road, High tech District Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Handa Cloud Technology Co.,Ltd.

Country or region after: China

Address before: 100041 510, building 17, No. 30, Shixing street, Shijingshan District, Beijing

Patentee before: BEIJING J.ONATH NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China