HK1237450B - Instant messaging method and client - Google Patents
Instant messaging method and client Download PDFInfo
- Publication number
- HK1237450B HK1237450B HK17111147.0A HK17111147A HK1237450B HK 1237450 B HK1237450 B HK 1237450B HK 17111147 A HK17111147 A HK 17111147A HK 1237450 B HK1237450 B HK 1237450B
- Authority
- HK
- Hong Kong
- Prior art keywords
- message
- instant messaging
- preset information
- information type
- value
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及数据通信技术领域,特别涉及一种即时通讯方法及客户端。The present application relates to the field of data communication technology, and in particular to an instant messaging method and client.
背景技术Background Art
即时通讯(IM,Instant Messaging)技术实现了在线实时沟通,在娱乐聊天、电子商务中的应用越来越广泛。即时通讯技术通常通过客户端实现用户的在线实时交互,用户可以通过客户端向另一用户的客户端发送消息,也可以通过客户端阅读从其它客户端发来的消息。Instant messaging (IM) technology enables real-time online communication and is increasingly used in entertainment, chat, and e-commerce. IM typically uses a client to enable real-time online interaction. Users can send messages to other clients through a client, and can also read messages sent from other clients through a client.
目前,即时通讯的用户越来越注重个人隐私安全问题。在某些时候,用户一方面希望与朋友分享某些文字、图片、视频等私密信息,但又不希望朋友将所述私密信息进行保存或传播,因此诞生了“阅后即焚”技术以解决这个问题。所谓“阅后即焚”技术是指当发送方将某个信息发送给接收方后,接收方用户通过一个手指长按该信息的图标或列表后,屏幕上将呈现该信息的内容,并且该信息将在呈现后的限定时间内自动焚毁。Instant messaging users are increasingly concerned about privacy and security. Sometimes, users want to share private information like text, images, and videos with friends, but they don't want their friends to save or disseminate it. Therefore, "ephemeral" messaging technology was developed to address this issue. Ephemeral messaging technology allows users to send a message to a recipient. By long-pressing the message icon or list, the recipient's screen will display the message content and automatically incinerate within a limited time.
也就是说,在现有的“阅后即焚”的模式下输入的信息,在接收方阅读后的短时间,如10秒内会被永久性删除。然而,用户在“阅后即焚”的模式下进行即时通讯时,有时候往往需要发送少量的需要双方记录的消息。例如,在“阅后即焚”的模式下,用户需要发送某条带有具体时间、地点的普通消息,此普通消息在阅后能不被删除。现有的处理方式需要用户首先退出当前“阅后即焚”的会话窗口,然后进入阅后不焚的普通模式的会话窗口,接着才能进行后续输入、发送等操作。当用户发完该普通消息时,他又需要再退出当前普通模式的会话窗口,转为进入“阅后即焚”模式的会话窗口。That is to say, the information entered in the existing "burn after reading" mode will be permanently deleted within a short time, such as 10 seconds, after the recipient reads it. However, when users conduct instant messaging in the "burn after reading" mode, they sometimes need to send a small number of messages that need to be recorded by both parties. For example, in the "burn after reading" mode, the user needs to send a normal message with a specific time and place, and this normal message will not be deleted after reading. The existing processing method requires the user to first exit the current "burn after reading" conversation window, and then enter the normal mode conversation window that does not burn after reading, and then perform subsequent input, sending and other operations. When the user has sent the normal message, he needs to exit the current normal mode conversation window again and enter the "burn after reading" mode conversation window.
由以上描述可见,现有的即时通讯软件中,在不同消息模式之间切换较为繁琐。As can be seen from the above description, in existing instant messaging software, switching between different message modes is relatively cumbersome.
发明内容Summary of the Invention
本申请实施方式提供一种便于操作的即时通讯方法及客户端。The embodiments of the present application provide an instant messaging method and client that are easy to operate.
为解决上述技术问题,本申请提供一种即时通讯方法,其包括:通过会话窗口的输入框接收输入的即时通讯消息;读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值;在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。To solve the above technical problems, the present application provides an instant messaging method, which includes: receiving an input instant messaging message through an input box of a conversation window; reading the current value of a preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; sending the instant messaging message, wherein the instant messaging message is accompanied by the current value of the preset information type identifier; when the preset information type identifier is the first value, displaying the preset information in a display box of the conversation window; when the preset information type identifier is the second value, displaying the instant messaging message in the display box of the conversation window; wherein the preset information indicates that the corresponding instant messaging message is of the first information type.
本申请还提供一种客户端,其包括:接收模块,用于通过会话窗口的输入框接收输入的即时通讯消息;读取模块,用于读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;发送模块,用于发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值;展示模块,用于在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。The present application also provides a client, which includes: a receiving module, used to receive an instant messaging message input through an input box of a conversation window; a reading module, used to read the current value of a preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; a sending module, used to send the instant messaging message, and the instant messaging message is accompanied by the current value of the preset information type identifier; a display module, used to display the instant messaging message in the display box of the conversation window when the preset information type identifier is the second value; and to display the preset information in the display box of the conversation window when the preset information type identifier is the first value; wherein the preset information indicates that the corresponding instant messaging message is of the first information type.
本申请还提供一种客户端,其包括:通信模块、显示器和处理器;其中,所述处理器能通过会话窗口的输入框接收输入的即时通讯消息;读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;控制所述通信模块发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值;在所述预设信息类型标识为所述第一取值时,控制所述显示器在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,控制所述显示器在所述会话窗口的展示框中展示所述即时通讯消息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。The present application also provides a client, which includes: a communication module, a display and a processor; wherein the processor can receive an input instant messaging message through an input box of a conversation window; read the current value of a preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; control the communication module to send the instant messaging message, and the instant messaging message is accompanied by the current value of the preset information type identifier; when the preset information type identifier is the first value, control the display to display the preset information in a display box of the conversation window; when the preset information type identifier is the second value, control the display to display the instant messaging message in the display box of the conversation window; wherein the preset information indicates that the corresponding instant messaging message is of the first information type.
本申请还提供一种即时通讯方法,其包括:接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,在会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,在所述会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。The present application also provides an instant messaging method, which includes: receiving an instant messaging message; wherein the instant messaging message is accompanied by a current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; when the current value of the preset information type identifier of the instant messaging message is the first value, displaying preset information in a session window, the preset information indicating that an instant messaging message of the first information type has been received; when the current value of the preset information type identifier of the instant messaging message is the second value, displaying the instant messaging message in the session window; wherein the instant messaging message of the first information type and the preset information of the second information type are displayed in the same session window.
本申请还提供一种客户端,其包括:接收模块,用于接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;展示模块,用于在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,在会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,在所述会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。The present application also provides a client, which includes: a receiving module for receiving an instant messaging message; wherein the instant messaging message is accompanied by a current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; a display module for displaying preset information in a session window when the current value of the preset information type identifier of the instant messaging message is the first value, the preset information indicating that an instant messaging message of the first information type has been received; and displaying the instant messaging message in the session window when the current value of the preset information type identifier of the instant messaging message is the second value; wherein the instant messaging message of the first information type and the preset information of the second information type are displayed in the same session window.
本申请还提供一种客户端,其包括:所述通信模块能接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;所述处理器能在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,控制所述显示器在会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,控制所述显示器在所述会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。The present application also provides a client, which includes: the communication module can receive instant messaging messages; wherein the instant messaging message is accompanied by the current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; the processor can control the display to display preset information in a session window when the current value of the preset information type identifier of the instant messaging message is the first value, the preset information indicating that an instant messaging message of the first information type has been received; and control the display to display the instant messaging message in the session window when the current value of the preset information type identifier of the instant messaging message is the second value; wherein the instant messaging message of the first information type and the preset information of the second information type are displayed in the same session window.
本申请以上实施方式描述的即时通讯方法和客户端,通过读取预设信息类型标识的当前取值,可以根据预设信息类型标识的当前取值确定当前即时通讯消息的信息类型,使得在会话窗口的展示框中能够根据所述当前取值对即时通讯消息进行区别展示。如在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;进而实现了在同一个会话窗口,根据用户需求对不同的即时通讯消息进行不同类型即时通讯消息的切换,简化了用户操作,提高了用户体验。The instant messaging method and client described in the above embodiments of the present application can determine the information type of the current instant messaging message based on the current value of the preset information type identifier by reading the current value of the preset information type identifier, so that the instant messaging message can be displayed differently in the display frame of the conversation window based on the current value. For example, when the preset information type identifier is the first value, the preset information is displayed in the display frame of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display frame of the conversation window. This enables switching between different types of instant messaging messages based on user needs in the same conversation window, simplifies user operations, and improves user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施方式或现有技术中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the implementation methods of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the implementation methods or the description of the prior art. Obviously, the drawings described below are only some implementation methods recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请一个实施方式提供的即时通讯方法的流程图;FIG1 is a flow chart of an instant messaging method provided by one embodiment of the present application;
图2为本申请一个实施方式提供的客户端的会话窗口的示意图;FIG2 is a schematic diagram of a session window of a client provided in one embodiment of the present application;
图3为本申请一个实施方式提供的客户端的会话窗口的示意图;FIG3 is a schematic diagram of a session window of a client provided in one embodiment of the present application;
图4为本申请一个实施方式提供的即时通讯方法的流程图;FIG4 is a flow chart of an instant messaging method provided by one embodiment of the present application;
图5为本申请一个实施方式提供的客户端的会话窗口的示意图;FIG5 is a schematic diagram of a session window of a client provided in one embodiment of the present application;
图6为本申请一个实施方式提供的客户端的会话窗口的示意图;FIG6 is a schematic diagram of a session window of a client provided in one embodiment of the present application;
图7为本申请一个实施方式提供的客户端的模块图;FIG7 is a module diagram of a client provided in one embodiment of the present application;
图8为本申请一个实施方式提供的客户端的模块图;FIG8 is a module diagram of a client provided in one embodiment of the present application;
图9为本申请一个实施方式提供的即时通讯方法的流程图;FIG9 is a flow chart of an instant messaging method provided by one embodiment of the present application;
图10为本申请一个实施方式提供的即时通讯方法的流程图;FIG10 is a flow chart of an instant messaging method provided by one embodiment of the present application;
图11为本申请一个实施方式提供的客户端的模块图;FIG11 is a module diagram of a client provided in one embodiment of the present application;
图12为本申请一个实施方式提供的客户端的模块图。FIG12 is a module diagram of a client provided in one embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施方式中的附图,对本申请实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this application, the following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
请参阅图1。本申请的一个实施方式提供一种即时通讯方法可以包括如下步骤。Please refer to Figure 1. One embodiment of the present application provides an instant messaging method that may include the following steps.
步骤S10:通过会话窗口的输入框接收输入的即时通讯消息。Step S10: receiving an input instant messaging message through the input box of the conversation window.
在本实施方式中,客户端之间可以进行即时通讯,收发即时通讯消息。客户端可以是具有网络通讯功能的通信设备,例如台式电脑、笔记本电脑、平板电脑、智能手机和智能可穿戴设备等。当然,客户端也可以为运行于上述通信设备中的软件。所述客户端可以被用户使用,以发出即时通讯消息。In this embodiment, clients can communicate with each other instantaneously, sending and receiving instant messaging messages. The client can be a communication device with network communication capabilities, such as a desktop computer, laptop computer, tablet computer, smartphone, or smart wearable device. Of course, the client can also be software running on the above communication devices. The client can be used by the user to send instant messaging messages.
在本实施方式中,即时通讯消息的具体内容可以包括文本、语音、图片或文件等。当然,即时通讯消息的内容不限于上述列举。在一个具体的实施方式中,请参阅图2,在所述会话窗口1中可以设置有输入框2,用于接收用户输入的即时通讯消息。当所述会话窗口1的输入框2接收到用户时,可以表示用户正在通过客户端进行即时通讯消息的编辑。此外在所述会话窗口1中还可以显示有触摸键盘3,便于用户通过所述触摸键盘3进行文本输入。In this embodiment, the specific content of an instant messaging message may include text, voice, images, or files. Of course, the content of an instant messaging message is not limited to the above. In one specific embodiment, referring to FIG2 , an input box 2 may be provided in the conversation window 1 for receiving an instant messaging message input by a user. When the input box 2 in the conversation window 1 receives a user input, it may indicate that the user is editing an instant messaging message via the client. Furthermore, a touch keyboard 3 may be displayed in the conversation window 1 to facilitate text input by the user.
在本实施方式中,在所述会话窗口中还可以显示有消息接收方的身份标识。所述身份标识可以用于唯一标识一个用户。具体的,所述身份标识可以为用户自定义名称、用户通信号码、用户在即时通讯消息软件中注册的账户等。In this embodiment, the message recipient's identity may also be displayed in the conversation window. The identity may be used to uniquely identify a user. Specifically, the identity may be a user-defined name, a user's contact number, an account registered by the user in an instant messaging software, or the like.
步骤S12:读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值。Step S12: Read the current value of the preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of the first information type, and a second value indicating that the current information is of the second information type.
在本实施方式中,预设信息类型可以包括:第一信息类型和第二信息类型。具体的,所述第一信息类型可以表示当前所述即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息,后续可以在会话窗口中可以不进行展示。所述第二信息类型可以表示当前所述即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息,后续可以在会话窗口中直接展示。In this embodiment, the preset information types may include: a first information type and a second information type. Specifically, the first information type may indicate that the current instant messaging message has high privacy protection requirements or high security protection requirements, and may not be displayed in the conversation window later. The second information type may indicate that the current instant messaging message has low privacy protection requirements or low security protection requirements, but is easy for the user to read and record, and may be directly displayed in the conversation window later.
在本实施方式中,所述预设信息类型对应有预设信息类型标识。所述预设信息类型标识用于表示当前的即时通讯消息具体的信息类型。所述预设信息类型标识可以包括第一取值和第二取值。所述第一取值与所述第一信息类型相对应,当所述预设信息类型标识为第一取值时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。所述第二取值与所述第二信息类型相对应,当所述预设信息类型标识为第二取值时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。In this embodiment, the preset information type corresponds to a preset information type identifier. The preset information type identifier is used to indicate the specific information type of the current instant messaging message. The preset information type identifier may include a first value and a second value. The first value corresponds to the first information type. When the preset information type identifier is the first value, it indicates that the instant messaging message that the user currently needs to send is a message with high privacy protection requirements or high security protection requirements. The second value corresponds to the second information type. When the preset information type identifier is the second value, it indicates that the instant messaging message that the user currently needs to send is a message with low privacy protection requirements or low security protection requirements but is easy for the user to read and record.
在本实施方式中,通过读取预设信息类型标识的当前取值,确定当前取值是第一取值还是第二取值。进一步的,可以根据所述当前取值的具体值可以确定当前的即时通讯消息的具体信息类型。In this embodiment, by reading the current value of the preset information type identifier, it is determined whether the current value is the first value or the second value. Further, the specific information type of the current instant messaging message can be determined based on the specific value of the current value.
具体的,所述读取的方式可以为在所述会话窗口的预定位置设置开关按钮。例如,当所述开关按钮为打开的第一状态时,所述预设信息类型标识的当前取值为第一取值ON时,对应的即时通讯消息的消息类型为第一信息类型。当所述开关按钮为关闭状态时,所述预设信息类型标识的当前取值为第二取值OFF时,对应的即时通讯消息的消息类型为第二信息类型。使用时,客户端可以通过记录所述开关按钮的原始状态以及接收所述开关按钮被点击的状态确定预设信息类型标识的当前取值,从而确定即时通讯消息的具体消息类型。Specifically, the reading method can be to set a switch button at a predetermined position in the conversation window. For example, when the switch button is in the first state of on, and the current value of the preset information type identifier is the first value ON, the message type of the corresponding instant messaging message is the first information type. When the switch button is in the off state, and the current value of the preset information type identifier is the second value OFF, the message type of the corresponding instant messaging message is the second information type. During use, the client can determine the current value of the preset information type identifier by recording the original state of the switch button and receiving the state of the switch button being clicked, thereby determining the specific message type of the instant messaging message.
当然,即时通讯消息的类型以及预设信息类型标识的取值均不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。Of course, the types of instant messaging messages and the values of the preset information type identifiers are not limited to the above description. Persons skilled in the art may make other changes based on the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of this application, they should be included in the scope of protection of this application.
步骤S14:发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值。Step S14: Send the instant messaging message, which is accompanied by the current value of the preset information type identifier.
在本实施方式中,所述发送所述即时通讯消息的方式可以由用户点击预定按钮的事件触发发出、可以为在检测到输入框内停止输入的预定时长后自动发送等。当然,发送所述即时通讯消息的方式不限于上述列举。In this embodiment, the instant messaging message can be sent by triggering an event of a user clicking a predetermined button, or automatically sent after detecting a predetermined period of inactivity in the input box, etc. Of course, the instant messaging message sending method is not limited to the above examples.
具体的,请参阅图2,在所述会话窗1的预定位置可以设置有发送按钮4,当用户点击说话声发送按钮4时,客户端对应接收到触发信号,将输入框2内的即时通讯消息向预定的消息接收方发送。所述预定的消息接收方可以为所述会话窗口1中显示的“小花”对应的客户端。Specifically, referring to FIG. 2 , a send button 4 may be provided at a predetermined position in the conversation window 1 . When the user clicks the voice send button 4 , the client receives a trigger signal and sends the instant messaging message in the input box 2 to a predetermined message recipient. The predetermined message recipient may be the client corresponding to the "Xiaohua" displayed in the conversation window 1 .
在本实施方式中,所述预设信息类型标识的当前取值可以为第一取值或第二取值。客户端可以根据所述当前取值确定对应的即时通讯消息的消息类型。在所述即时通讯消息附带所述预设信息类型标识的当前取值时,可以将所述即时通讯消息的消息类型随着当前的即时通讯消息发送给对应的消息接收方的客户端。进一步的,消息接收方的客户端可以根据当前接收到的即时通讯消息的消息类型进区别操作。In this embodiment, the current value of the preset information type identifier can be the first value or the second value. The client can determine the message type of the corresponding instant messaging message based on the current value. When the instant messaging message is accompanied by the current value of the preset information type identifier, the message type of the instant messaging message can be sent along with the current instant messaging message to the client of the corresponding message recipient. Furthermore, the client of the message recipient can perform different operations based on the message type of the currently received instant messaging message.
步骤S16:在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。Step S16: When the preset information type identifier is the first value, the preset information is displayed in the display box of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display box of the conversation window; wherein the preset information indicates that the corresponding instant messaging message is the first information type.
在本实施方式中,所述预设信息具体可以为预先存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。所述预设信息还可以为其他具体形式,本申请在此并不做具体限定。In this embodiment, the preset information can be a combination of one or more images, character strings, voices, and videos pre-stored in the memory. The preset information can also be in other specific forms, which are not specifically limited in this application.
在本实施方式中,在所述预设信息类型标识为所述第一取值时,可以表示当前的即时通讯消息的消息类型为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。在消息接收方没有点开阅读之前,消息发送方若有需要可以点击所述预设信息,以查看对应的即时通讯消息的具体内容。In this embodiment, when the preset information type identifier is the first value, it can indicate that the message type of the current instant messaging message is the first information type. This indicates that the instant messaging message the user is currently sending requires high privacy or security protection. To protect the user's privacy, the specific content of the message is not directly displayed in the conversation window. Instead, the content of the instant messaging message is replaced with preset information in the conversation window. If necessary, the message sender can click on the preset information to view the specific content of the corresponding instant messaging message before the message recipient clicks to read it.
在本实施方式中,在所述预设信息类型标识为所述第二取值时,可以表示当前的即时通讯消息的消息类型为第二信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。很多情况下,该消息中可能包含有需要即时通讯的双方记录的内容,例如具体的时间、地点等等。因此,该即时通讯消息可以在会话窗口直接展示出来,以便于用户查看。In this embodiment, when the preset information type identifier is the second value, it can indicate that the message type of the current instant messaging message is the second information type. In this case, the instant messaging message that the user needs to send has low privacy protection requirements or low security protection, but is easy for the user to read and record. In many cases, this message may contain content that both parties need to record, such as the specific time and location. Therefore, this instant messaging message can be directly displayed in the conversation window for user viewing.
在本实施方式中,当在会话窗口显示有预设信息时,其可以表示所述预设信息对应的即时通讯消息的消息类型为第一信息类型,即表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用所述预设信息代替所述即时通讯消息的内容进行展示。此外,在消息接收方点开阅读后,所述即时通讯消息可以在预定的时间内被删除,以防止被他人翻阅即时通讯消息记录,泄露隐私。In this embodiment, when preset information is displayed in the conversation window, it may indicate that the instant messaging message corresponding to the preset information is of the first message type, indicating that the instant messaging message the user is currently sending requires high privacy or security protection. To protect the user's privacy, the specific content of the message is not directly displayed in the conversation window. Instead, the preset information is used to replace the content of the instant messaging message. Furthermore, after the recipient clicks to read the message, the instant messaging message can be deleted within a predetermined time period to prevent others from browsing the instant messaging message log and leaking privacy.
本申请实施方式,通过读取预设信息类型标识的当前取值,可以根据预设信息类型标识的当前取值确定当前即时通讯消息的信息类型,使得在会话窗口的展示框中能够根据所述当前取值对即时通讯消息进行区别展示。如在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;进而实现了在同一个会话窗口,根据用户需求对不同的即时通讯消息进行不同类型即时通讯消息的切换,简化了用户操作,提高了用户体验。In the embodiments of the present application, by reading the current value of the preset information type identifier, the information type of the current instant messaging message can be determined based on the current value of the preset information type identifier, so that the instant messaging message can be displayed differently in the display frame of the conversation window based on the current value. For example, when the preset information type identifier is the first value, the preset information is displayed in the display frame of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display frame of the conversation window. This enables switching between different types of instant messaging messages based on user needs within the same conversation window, simplifying user operations and improving user experience.
在一个实施方式中,在所述会话窗口提供有类型切换标记,所述方法还可以包括:在所述类型切换标记被点击时,改变所述预设信息类型标识的当前取值,使得所述预设信息类型标识的当前取值在所述第一取值和所述第二取值之间替换。In one embodiment, a type switching mark is provided in the conversation window, and the method may further include: when the type switching mark is clicked, changing the current value of the preset information type identifier so that the current value of the preset information type identifier is replaced between the first value and the second value.
在本实施方式中,在所述会话窗口可以设置有类型切换标记。所述预设信息类型的当前取值可以通过所述类型切换标记的被点击的状态确定。当所述类型切换标记被点击时,能够使得所述预设信息类型标识的当前取值进行切换,包括从第一取值变化为第二取值,以及从第二取值变化为第一取值。In this embodiment, a type switching mark may be provided in the conversation window. The current value of the preset information type may be determined by the click state of the type switching mark. When the type switching mark is clicked, the current value of the preset information type identifier may be switched, including changing from a first value to a second value, or from the second value to the first value.
在本实施方式中,所述类型切换标5被点击的方式包括:循环点击、单击和双击、轻点和重按等。所述类型切换标记可以包括第一状态和第二状态。具体的,请参阅图3,例如所述类型切换标记5的第一状态可以对应在客户端记录为1;所述第二状态可以记录为0。在所述被点击的方式为循环点击时,例如,在所述类型切换标记5为第一状态时,并且所述类型切换标记被点击一次后,其可以转换成第二状态。对应的,所述预设信息类型标识在所述类型切换标记5为第一状态时,其当前取值可以为第一取值。具体的所述第一取值可以与所述第一状态记录的值相对应或相同,例如也为1。当所述类型切换标记5转换成第二状态时,其当前取值可以为第二取值。具体的,所述第二取值可以与第二状态记录的值相对应或相同,例如也为0。当所述类型切换标记5再次被点击后,其由第二状态转换成第一状态时,对应的,所述预设信息类型标识的当前取值也从第二取值转变为第一取值。In this embodiment, the type switch mark 5 can be clicked in various ways, including cyclic clicks, single and double clicks, light and heavy clicks, and so on. The type switch mark can have a first state and a second state. Specifically, referring to Figure 3 , for example, the first state of the type switch mark 5 can be recorded as 1 on the client, and the second state can be recorded as 0. When the click method is cyclic clicks, for example, when the type switch mark 5 is in the first state and is clicked once, it can transition to the second state. Accordingly, when the type switch mark 5 is in the first state, its current value can be the first value. Specifically, the first value can correspond to or be the same as the value recorded in the first state, for example, also 1. When the type switch mark 5 transitions to the second state, its current value can be the second value. Specifically, the second value can correspond to or be the same as the value recorded in the second state, for example, also 0. When the type switch mark 5 is clicked again, transitioning from the second state to the first state, the current value of the preset information type mark also transitions from the second value to the first value.
在一个具体的实施方式中,当所述类型切换标记被点击的方式为单击和双击时,所述类型切换标记被单击时,其对应的所述预设信息类型标识的当前取值可以为第一取值;当所述类型切换标记被双击时,其对应的所述预设信息类型标识的当前取值可以为第二取值。In a specific embodiment, when the type switch mark is clicked in single-click and double-click manner, when the type switch mark is single-clicked, the current value of the corresponding preset information type identifier can be a first value; when the type switch mark is double-clicked, the current value of the corresponding preset information type identifier can be a second value.
在另一个具体的实施方式中,所述类型切换标记被点击的方式可包括轻点和重按。所述类型切换标记被轻点时,其对应的所述预设信息类型标识的当前取值可以为第一取值;当所述类型切换标记被重按时,其对应的所述预设信息类型标识的当前取值可以为第二取值。In another specific embodiment, the type switching mark may be clicked in a manner including a light tap and a heavy press. When the type switching mark is lightly tapped, the current value of the corresponding preset information type identifier may be a first value; when the type switching mark is heavy pressed, the current value of the corresponding preset information type identifier may be a second value.
当然,所述类型切换标记被点击的方式不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。Of course, the way the type switching mark is clicked is not limited to the above description. Those skilled in the art may make other changes based on the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of this application, they should be included in the scope of protection of this application.
在一个实施方式中,所述方法还可以包括:在所述会话窗口的输入框获得焦点之后或者所述输入框接收到输入之后,在所述会话窗口的预定位置显示类型切换标记。In one embodiment, the method may further include: displaying a type switching mark at a predetermined position of the conversation window after the input box of the conversation window obtains focus or after the input box receives input.
在本实施方式中,控制器可以设置有控件持续检测所述会话窗口的输入框位置是否有输入。当检测到有输入后,所述控件能够相应地获得焦点。当在所述控件获得焦点之后或者所述输入框接收到输入之后,表示用户有编辑即时通讯消息的需求。此时,可以在所述会话窗口的预定位置显示类型切换标记。用户可以根据实际需要通过点击所述类型切换标记,改变预设信息类型标识的当前取值,进而选择即时通讯消息发送的具体信息类型。In this embodiment, the controller may be provided with a control that continuously detects whether input is received in the input box of the conversation window. Upon detecting input, the control may be assigned focus. After the control acquires focus or the input box receives input, it indicates that the user wishes to edit the instant messaging message. At this point, a type switching mark may be displayed at a predetermined location in the conversation window. The user may click the type switching mark to change the current value of the preset information type identifier, thereby selecting the specific information type to be sent as the instant messaging message.
请参阅图4,在一个实施方式中,所述读取预设信息类型标识的当前取值可以包括如下步骤。Referring to FIG. 4 , in one embodiment, the process of reading the current value of the preset information type identifier may include the following steps.
步骤S120:获取所述类型切换标记被点击的次数。Step S120: Obtain the number of times the type switching mark is clicked.
步骤S122:根据所述被点击次数的预定性质确定所述预设信息类型标识的当前取值。Step S122: Determine the current value of the preset information type identifier according to the predetermined property of the number of clicks.
步骤S124:当所述当前取值为第一取值时,所述类型切换标记对应显示成第一预定图标;当所述当前取值为第二取值时,所述类型切换标记对应显示成第二预定图标。Step S124: When the current value is the first value, the type switching mark is displayed as a first predetermined icon; when the current value is the second value, the type switching mark is displayed as a second predetermined icon.
在本实施方式中,客户端可以设置有计数器,通过计数器的计数功能获取所述类型切换标记被点击的次数。然后根据所述被点击次数的性质可以确定所述预设信息类型标识的当前取值。In this embodiment, the client may be provided with a counter, and the number of times the type switching mark is clicked is obtained through the counting function of the counter. Then, the current value of the preset information type identifier may be determined according to the nature of the number of clicks.
在一个具体的实施方式中,所述预定性质可以为所述点击次数的奇偶性。例如当所述类型切换标记被点击奇数次时,所述预设信息类型标识的当前取值为第一取值;当所述类型切换标记被点击偶数次时,所述预设信息类型标识的当前取值为第二取值。In a specific embodiment, the predetermined property may be the parity of the number of clicks. For example, when the type switching mark is clicked an odd number of times, the current value of the preset information type identifier is a first value; and when the type switching mark is clicked an even number of times, the current value of the preset information type identifier is a second value.
在一个具体的实施方式中,所述预定性质可以为所述点击次数为单击、双击。当所述类型切换标记被单击时,所述预设信息类型标识的当前取值可以为第一取值;当所述类型切换标记被双击时,所述预设信息类型标识的当前取值可以为第二取值。In a specific embodiment, the predetermined property may be that the number of clicks is single-click or double-click. When the type switching mark is single-clicked, the current value of the preset information type identifier may be a first value; when the type switching mark is double-clicked, the current value of the preset information type identifier may be a second value.
当然,所述预定性质不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。Of course, the predetermined properties are not limited to the above description. Those skilled in the art may make other changes based on the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of this application, they should be included in the scope of protection of this application.
在本实施方式中,当所述当前取值为第一取值时,所述类型切换标记对应显示成第一预定图标,表示其对应的即时通讯消息类型为第一信息类型。当所述当前取值为第二取值时,所述类型切换标记对应显示成第二预定图标,表示其对应的即时通讯消息类型为第二信息类型。所述第一预定图标与所述第二预定图标不同。所述不同的第一预定图标、第二预定图标能够用于提示用户具体其当前输入的即时通讯消息对应的信息类型具体是什么。In this embodiment, when the current value is a first value, the type switching mark is displayed as a first predetermined icon, indicating that the corresponding instant messaging message type is the first information type. When the current value is a second value, the type switching mark is displayed as a second predetermined icon, indicating that the corresponding instant messaging message type is the second information type. The first predetermined icon and the second predetermined icon are different. The different first predetermined icon and second predetermined icon can be used to remind the user of the specific information type corresponding to the instant messaging message currently being input.
具体的,请参阅图5,所述第一预定图标为在所述类型切换标记所在位置处可以显示一个1,表示所述预设信息类型标识的当前取值为第一取值,其对应的即时通讯消息类型为第一信息类型。请参阅图6,所述第二预定图标为在所述类型切换标记所述在位置处可以显示一个0,表示所述预设信息类型标识的当前取值为第二取值,其对应的即时通讯消息类型为第二信息类型。当然,具体的第一预定图标、第二预定图标样式可以有多种设计方式,本申请在此不作具体限定。Specifically, referring to FIG5 , the first predetermined icon can display a 1 at the position of the type switching mark, indicating that the current value of the preset information type identifier is the first value, and the corresponding instant messaging message type is the first information type. Referring to FIG6 , the second predetermined icon can display a 0 at the position of the type switching mark, indicating that the current value of the preset information type identifier is the second value, and the corresponding instant messaging message type is the second information type. Of course, the specific first predetermined icon and second predetermined icon styles can be designed in a variety of ways, and this application does not specifically limit them here.
在一个实施方式中,所述方法还可以包括:在会话窗口的预定位置显示与所述当前取值对应的当前预设信息类型提示。In one embodiment, the method may further include: displaying a current preset information type prompt corresponding to the current value at a predetermined position in the conversation window.
在本实施方式中,所述当前预设信息类型提示可以包括第一信息类型提示和第二信息类型提示。具体的,所述当前信息类型提示可以根据当前取值确定具体在所述会话窗口的预定位置展示哪个信息类型提示。In this embodiment, the current preset information type prompt may include a first information type prompt and a second information type prompt. Specifically, the current information type prompt may determine which information type prompt is displayed at a predetermined position in the conversation window according to a current value.
具体的,请参阅图5,当所述当前取值为第一取值时,可以在所述会话窗口的预定位置显示第一信息类型提示。具体的,例如,所述第一信息类型提示可以为“阅后即焚”。当所述会话窗口显示有“阅后即焚”时,表明当前输入的即时通讯消息为第一信息类型,其隐私保护要求较高或者安全性保护要求较高。请参阅图6,当所述当前取值为第二取值时,可以在所述会话窗口的预定位置显示第二信息类型提示。具体的,例如,所述第二信息类型提示可以为“阅后不焚”。当所述会话窗口显示有“阅后不焚”时,表明当前输入的即时通讯消息为第二信息类型,其隐私保护要求较低或者安全性保护较低但便于用户阅读和记录,后续可以在会话窗口中直接展示。当用户看到所述预设信息类型提示时,可以很清楚地知道当前即时通讯消息的类型具体是哪种。Specifically, referring to FIG5 , when the current value is a first value, a first information type prompt may be displayed in a predetermined location of the conversation window. Specifically, for example, the first information type prompt may be "burn after reading." When the conversation window displays "burn after reading," it indicates that the currently input instant messaging message is of the first information type, which has higher privacy protection requirements or higher security protection requirements. Referring to FIG6 , when the current value is a second value, a second information type prompt may be displayed in a predetermined location of the conversation window. Specifically, for example, the second information type prompt may be "do not burn after reading." When the conversation window displays "do not burn after reading," it indicates that the currently input instant messaging message is of the second information type, which has lower privacy protection requirements or lower security protection requirements but is convenient for users to read and record, and can be directly displayed in the conversation window later. When the user sees the preset information type prompt, they can clearly know the specific type of the current instant messaging message.
在本实施方式中,所述会话窗口的预定位置可以在所述输入框2的上方,靠近所述输入框2的位置。当用户在输入框2中进行信息输入时,方便查看当前信息类型提示,以明确当前的即时通讯消息类型。In this embodiment, the predetermined position of the conversation window can be above the input box 2, near the input box 2. When the user enters information in the input box 2, it is convenient to view the current information type prompt to clarify the current instant messaging message type.
在一个实施方式中,所述预设信息可以包括以下至少一种:图片、字符串、语音、视频。In one embodiment, the preset information may include at least one of the following: a picture, a character string, a voice, and a video.
在本实施方式中,所述预设信息用于在即时通讯消息为第一信息类型时,代替具体的即时通讯消息内容展示在会话窗口中,以保护用户的隐私。具体的,所述预设信息可以为图片、字符串、语音、视频中的一种或多种组合。当然,所述预设信息的具体形式不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。In this embodiment, the preset information is used to display the specific instant messaging message content in the conversation window when the instant messaging message is of the first information type, thereby protecting the user's privacy. Specifically, the preset information can be a combination of one or more images, character strings, voice, and video. Of course, the specific form of the preset information is not limited to the above description. Inspired by the technical essence of this application, those skilled in the art may make other changes. However, as long as the functions and effects achieved are the same or similar to those of this application, they should be covered by the scope of protection of this application.
在一个实施方式中,所述即时通讯方法还可以包括:In one embodiment, the instant messaging method may further include:
接收即时通讯消息接收方发出的删除指令,根据所述删除指令,在所述会话窗口取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除;receiving a deletion instruction from an instant messaging message recipient, canceling display of corresponding preset information in the conversation window according to the deletion instruction, and deleting the instant messaging message corresponding to the preset information;
或者,在所述即时通讯消息发送达到预定时长时,在所述会话窗口取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除;Alternatively, when the instant messaging message sending reaches a predetermined time, the corresponding preset information is canceled from being displayed in the conversation window, and the instant messaging message corresponding to the preset information is deleted;
或者,在所述即时通讯消息发送后,在所述会话窗口的所述预设信息发生点击事件后,在所述会话窗口取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除。Alternatively, after the instant messaging message is sent, when a click event occurs on the preset information in the conversation window, the corresponding preset information is canceled from being displayed in the conversation window, and the instant messaging message corresponding to the preset information is deleted.
在本实施方式中,在所述即时通讯消息为第一信息类型时,其在会话窗口对应显示为预设信息。所述客户端可以通过通信模块接收即时通讯消息接收方发出的删除指令。所述删除指令可以附带有该即时通讯消息的属性,根据所述删除指令中附带的属性可以唯一确定对应的预设信息和即时通讯消息。当客户端接收到所述删除指令后,可以在所述会话窗口取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除,从而保护用户隐私,且能防止不必要的信息占用内存。In this embodiment, when the instant messaging message is of the first information type, it is displayed as a corresponding preset message in the conversation window. The client can receive a delete instruction from the instant messaging message recipient via the communication module. The delete instruction can be accompanied by attributes of the instant messaging message, and the corresponding preset information and instant messaging message can be uniquely identified based on the attributes included in the delete instruction. Upon receiving the delete instruction, the client can remove the corresponding preset information from the conversation window and delete the instant messaging message corresponding to the preset information, thereby protecting user privacy and preventing unnecessary information from occupying memory.
在本实施方式中,在所述即时通讯消息为第一信息类型时,其在会话窗口对应显示为预设信息。在所述即时通讯消息发送达到预定时长时,在所述会话窗口可以取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除,从而保护用户隐私,且能防止不必要的信息占用内存。In this embodiment, when the instant messaging message is of the first message type, it is displayed as a corresponding preset message in the conversation window. When the instant messaging message reaches a predetermined time, the corresponding preset message can be removed from the conversation window and the instant messaging message corresponding to the preset message can be deleted, thereby protecting user privacy and preventing unnecessary information from occupying memory.
在本实施方式中,在所述即时通讯消息为第一信息类型时,其在会话窗口对应显示为预设信息。在所述即时通讯消息发送后,在所述会话窗口的所述预设信息发生点击事件后,在所述会话窗口可以取消显示对应的预设信息,并将与所述预设信息对应的即时通讯消息删除,从而保护用户隐私,且能防止不必要的信息占用内存。In this embodiment, when the instant messaging message is of the first message type, it is displayed as a corresponding preset message in the conversation window. After the instant messaging message is sent, if a click event occurs on the preset message in the conversation window, the corresponding preset message can be removed from the conversation window and the instant messaging message corresponding to the preset message can be deleted, thereby protecting user privacy and preventing unnecessary information from occupying memory.
请参阅图7,本申请实施方式还提供一种客户端100,其包括:接收模块10、读取模块12、发送模块14、展示模块16。Please refer to FIG. 7 . The embodiment of the present application further provides a client 100 , which includes: a receiving module 10 , a reading module 12 , a sending module 14 , and a display module 16 .
在本实施方式中,客户端100可以是具有网络通讯功能的通信设备,例如台式电脑、笔记本电脑、平板电脑、智能手机和智能可穿戴设备等。当然,客户端100也可以为运行于上述通信设备中的软件。In this embodiment, the client 100 may be a communication device with network communication capabilities, such as a desktop computer, a laptop computer, a tablet computer, a smart phone, a smart wearable device, etc. Of course, the client 100 may also be software running on the above communication devices.
接收模块10用于通过会话窗口的输入框接收输入的即时通讯消息。The receiving module 10 is used to receive an instant messaging message input through the input box of the conversation window.
在本实施方式中,客户端之间可以进行即时通讯,收发即时通讯消息。客户端可以是具有网络通讯功能的通信设备,例如台式电脑、笔记本电脑、平板电脑、智能手机和智能可穿戴设备等。当然,客户端也可以为运行于上述通信设备中的软件。所述客户端可以被用户使用,以发出即时通讯消息。In this embodiment, clients can communicate with each other instantaneously, sending and receiving instant messaging messages. The client can be a communication device with network communication capabilities, such as a desktop computer, laptop computer, tablet computer, smartphone, or smart wearable device. Of course, the client can also be software running on the above communication devices. The client can be used by the user to send instant messaging messages.
在本实施方式中,即时通讯消息的具体内容可以包括文本、语音、图片或文件等。当然,即时通讯消息的内容不限于上述列举。在一个具体的实施方式中,请参阅图2,在所述会话窗口1中可以设置有输入框2,用于接收用户输入的即时通讯消息。当所述会话窗口1的输入框2接收到用户时,可以表示用户正在通过客户端进行即时通讯消息的编辑。此外在所述会话窗口1中还可以显示有触摸键盘3,便于用户通过所述触摸键盘3进行文本输入。In this embodiment, the specific content of an instant messaging message may include text, voice, images, or files. Of course, the content of an instant messaging message is not limited to the above. In one specific embodiment, referring to FIG2 , an input box 2 may be provided in the conversation window 1 for receiving an instant messaging message input by a user. When the input box 2 in the conversation window 1 receives a user input, it may indicate that the user is editing an instant messaging message via the client. Furthermore, a touch keyboard 3 may be displayed in the conversation window 1 to facilitate text input by the user.
在本实施方式中,在所述会话窗口中还可以显示有消息接收方的身份标识。所述身份标识可以用于唯一标识一个用户。具体的,所述身份标识可以为用户自定义名称、用户通信号码、用户在即时通讯消息软件中注册的账户等。In this embodiment, the message recipient's identity may also be displayed in the conversation window. The identity may be used to uniquely identify a user. Specifically, the identity may be a user-defined name, a user's contact number, an account registered by the user in an instant messaging software, or the like.
读取模块12用于读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值。The reading module 12 is used to read the current value of the preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of the first information type, and a second value indicating that the current information is of the second information type.
在本实施方式中,预设信息类型可以包括:第一信息类型和第二信息类型。具体的,所述第一信息类型可以表示当前所述即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息,后续可以在会话窗口中可以不进行展示。所述第二信息类型可以表示当前所述即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息,后续可以在会话窗口中直接展示。In this embodiment, the preset information types may include: a first information type and a second information type. Specifically, the first information type may indicate that the current instant messaging message has high privacy protection requirements or high security protection requirements, and may not be displayed in the conversation window later. The second information type may indicate that the current instant messaging message has low privacy protection requirements or low security protection requirements, but is easy for the user to read and record, and may be directly displayed in the conversation window later.
在本实施方式中,所述预设信息类型对应有预设信息类型标识。所述预设信息类型标识用于表示当前的即时通讯消息具体是哪一种信息类型。所述预设信息类型标识可以包括第一取值和第二取值。所述第一取值与所述第一信息类型相对应,当所述预设信息类型标识为第一取值时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。所述第二取值与所述第二信息类型相对应,当所述预设信息类型标识为第二取值时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。In this embodiment, the preset information type corresponds to a preset information type identifier. The preset information type identifier is used to indicate which specific information type the current instant messaging message is. The preset information type identifier may include a first value and a second value. The first value corresponds to the first information type. When the preset information type identifier is the first value, it indicates that the instant messaging message that the user currently needs to send is a message with high privacy protection requirements or high security protection requirements. The second value corresponds to the second information type. When the preset information type identifier is the second value, it indicates that the instant messaging message that the user currently needs to send is a message with low privacy protection requirements or low security protection requirements but is easy for the user to read and record.
在本实施方式中,通过读取预设信息类型标识的当前取值,确定当前取值是第一取值还是第二取值。进一步的,可以根据所述当前取值的具体值可以确定当前的即时通讯消息的具体信息类型。In this embodiment, by reading the current value of the preset information type identifier, it is determined whether the current value is the first value or the second value. Further, the specific information type of the current instant messaging message can be determined based on the specific value of the current value.
具体的,所述读取的方式可以为在所述会话窗口的预定位置设置开关按钮。例如,当所述开关按钮为打开的第一状态时,所述预设信息类型标识的当前取值为第一取值ON时,对应的即时通讯消息的消息类型为第一信息类型。当所述开关按钮为关闭状态时,所述预设信息类型标识的当前取值为第二取值OFF时,对应的即时通讯消息的消息类型为第二信息类型。使用时,客户端可以通过记录所述开关按钮的原始状态以及接收所述开关按钮被点击的状态确定预设信息类型标识的当前取值,从而确定即时通讯消息的具体消息类型。Specifically, the reading method can be to set a switch button at a predetermined position in the conversation window. For example, when the switch button is in the first state of on, and the current value of the preset information type identifier is the first value ON, the message type of the corresponding instant messaging message is the first information type. When the switch button is in the off state, and the current value of the preset information type identifier is the second value OFF, the message type of the corresponding instant messaging message is the second information type. During use, the client can determine the current value of the preset information type identifier by recording the original state of the switch button and receiving the state of the switch button being clicked, thereby determining the specific message type of the instant messaging message.
当然,即时通讯消息的类型以及预设信息类型标识的取值均不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。Of course, the types of instant messaging messages and the values of the preset information type identifiers are not limited to the above description. Persons skilled in the art may make other changes based on the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of this application, they should be included in the scope of protection of this application.
发送模块14用于发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值。The sending module 14 is used to send the instant messaging message, and the instant messaging message is accompanied by the current value of the preset information type identifier.
在本实施方式中,所述发送所述即时通讯消息的方式可以由用户点击预定按钮的事件触发发出、可以为在检测到输入框内停止输入的预定时长后自动发送等。当然,发送所述即时通讯消息的方式不限于上述列举。In this embodiment, the instant messaging message can be sent by triggering an event of a user clicking a predetermined button, or automatically sent after detecting a predetermined period of inactivity in the input box, etc. Of course, the instant messaging message sending method is not limited to the above examples.
具体的,请参阅图2,在所述会话窗1的预定位置可以设置有发送按钮4,当用户点击说话声发送按钮4时,客户端对应接收到触发信号,将输入框2内的即时通讯消息向预定的消息接收方发送。所述预定的消息接收方可以为所述会话窗口1中显示的“小花”对应的客户端。Specifically, referring to FIG. 2 , a send button 4 may be provided at a predetermined position in the conversation window 1 . When the user clicks the voice send button 4 , the client receives a trigger signal and sends the instant messaging message in the input box 2 to a predetermined message recipient. The predetermined message recipient may be the client corresponding to the "Xiaohua" displayed in the conversation window 1 .
在本实施方式中,所述预设信息类型标识的当前取值可以为第一取值或第二取值。客户端可以根据所述当前取值确定对应的即时通讯消息的消息类型。在所述即时通讯消息附带所述预设信息类型标识的当前取值时,可以将所述即时通讯消息的消息类型随着当前的即时通讯消息发送给对应的消息接收方的客户端。进一步的,消息接收方的客户端可以根据当前接收到的即时通讯消息的消息类型进区别操作。In this embodiment, the current value of the preset information type identifier can be the first value or the second value. The client can determine the message type of the corresponding instant messaging message based on the current value. When the instant messaging message is accompanied by the current value of the preset information type identifier, the message type of the instant messaging message can be sent along with the current instant messaging message to the client of the corresponding message recipient. Furthermore, the client of the message recipient can perform different operations based on the message type of the currently received instant messaging message.
展示模块16用于在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。The display module 16 is used to display the instant messaging message in the display box of the conversation window when the preset information type identifier is the second value; and to display the preset information in the display box of the conversation window when the preset information type identifier is the first value; wherein the preset information indicates that the corresponding instant messaging message is the first information type.
在本实施方式中,所述预设信息具体可以为预先存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。所述预设信息还可以为其他具体形式,本申请在此并不做具体限定。In this embodiment, the preset information can be a combination of one or more images, character strings, voices, and videos pre-stored in the memory. The preset information can also be in other specific forms, which are not specifically limited in this application.
在本实施方式中,在所述预设信息类型标识为所述第一取值时,可以表示当前的即时通讯消息的消息类型为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。在消息接收方没有点开阅读之前,消息发送方若有需要可以点击所述预设信息,以查看对应的即时通讯消息的具体内容。In this embodiment, when the preset information type identifier is the first value, it can indicate that the message type of the current instant messaging message is the first information type. This indicates that the instant messaging message the user is currently sending requires high privacy or security protection. To protect the user's privacy, the specific content of the message is not directly displayed in the conversation window. Instead, the content of the instant messaging message is replaced with preset information in the conversation window. If necessary, the message sender can click on the preset information to view the specific content of the corresponding instant messaging message before the message recipient clicks to read it.
在本实施方式中,在所述预设信息类型标识为所述第二取值时,可以表示当前的即时通讯消息的消息类型为第二信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。很多情况下,该消息中可能包含有需要即时通讯的双方记录的内容,例如具体的时间、地点等等。因此,该即时通讯消息可以在会话窗口直接展示出来,以便于用户查看。In this embodiment, when the preset information type identifier is the second value, it can indicate that the message type of the current instant messaging message is the second information type. In this case, the instant messaging message that the user needs to send has low privacy protection requirements or low security protection, but is easy for the user to read and record. In many cases, this message may contain content that both parties need to record, such as the specific time and location. Therefore, this instant messaging message can be directly displayed in the conversation window for user viewing.
本申请实施方式,通过读取预设信息类型标识的当前取值,可以根据预设信息类型标识的当前取值确定当前即时通讯消息的信息类型,使得在会话窗口的展示框中能够根据所述当前取值对即时通讯消息进行区别展示。如在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;进而实现了在同一个会话窗口,根据用户需求对不同的即时通讯消息进行不同类型即时通讯消息的切换,简化了用户操作,提高了用户体验。In the embodiments of the present application, by reading the current value of the preset information type identifier, the information type of the current instant messaging message can be determined based on the current value of the preset information type identifier, so that the instant messaging message can be displayed differently in the display frame of the conversation window based on the current value. For example, when the preset information type identifier is the first value, the preset information is displayed in the display frame of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display frame of the conversation window. This enables switching between different types of instant messaging messages based on user needs within the same conversation window, simplifying user operations and improving user experience.
请参阅图8,本申请实施方式还提供一种客户端110,其包括:通信模块11、处理器13和显示器15。Please refer to FIG. 8 . The embodiment of the present application further provides a client 110 , which includes: a communication module 11 , a processor 13 , and a display 15 .
在本实施方式中,所述通信模块11能进行网络通信收发数据。通信模块可以是依照TCP/IP协议设置,并在该协议框架下进行网络通信。具体的,其可以为无线移动网络通信芯片,如GSM、CDMA等;其还可以为Wifi芯片;其还可以为蓝牙芯片。In this embodiment, the communication module 11 is capable of transmitting and receiving data via a network. The communication module may be configured in accordance with the TCP/IP protocol and perform network communications within this protocol framework. Specifically, it may be a wireless mobile network communication chip, such as GSM or CDMA; it may also be a Wi-Fi chip; or it may be a Bluetooth chip.
所述处理器13能通过会话窗口的输入框接收输入的即时通讯消息;读取预设信息类型标识的当前取值;其中所述预设信息类型标识包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;控制所述通信模块11发送所述即时通讯消息,所述即时通讯消息附带所述预设信息类型标识的当前取值;在所述预设信息类型标识为所述第一取值时,控制所述显示器15在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,控制所述显示器15在所述会话窗口的展示框中展示所述即时通讯消息;其中,所述预设信息表示相应的即时通讯消息为所述第一信息类型。The processor 13 can receive an instant messaging message input through the input box of the conversation window; read the current value of the preset information type identifier; wherein the preset information type identifier includes a first value indicating that the current information is of the first information type, and a second value indicating that the current information is of the second information type; control the communication module 11 to send the instant messaging message, and the instant messaging message is accompanied by the current value of the preset information type identifier; when the preset information type identifier is the first value, control the display 15 to display the preset information in the display box of the conversation window; when the preset information type identifier is the second value, control the display 15 to display the instant messaging message in the display box of the conversation window; wherein, the preset information indicates that the corresponding instant messaging message is of the first information type.
在本实施方式中,所述处理器13可以按任何适当的方式实现。例如,处理器13可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application SpecificIntegrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。本申请并不作限定。In this embodiment, the processor 13 can be implemented in any suitable manner. For example, the processor 13 can take the form of a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, an embedded microcontroller, etc. This application is not limited thereto.
本申请客户端可以是本申请即时通讯消息提示方法的一种硬件实施方式,可以实现本申请即时通讯方法实施方式并达到方法实施方式的技术效果。The client of the present application can be a hardware implementation of the instant messaging message prompt method of the present application, which can realize the implementation of the instant messaging method of the present application and achieve the technical effect of the implementation of the method.
请参阅图9。本申请一个实施方式所提供的一种即时通讯方法可以包括如下步骤。Please refer to Figure 9. An instant messaging method provided in one embodiment of the present application may include the following steps.
步骤S20:接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值。Step S20: Receive an instant messaging message; wherein the instant messaging message is accompanied by a current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type.
在本实施方式中,客户端之间可以进行即时通讯,收发即时通讯消息。客户端可以是具有网络通讯功能的通信设备,例如台式电脑、笔记本电脑、平板电脑、智能手机和智能可穿戴设备等。当然,客户端也可以为运行于上述通信设备中的软件。所述客户端可以被用户使用,以发出即时通讯消息。In this embodiment, clients can communicate with each other instantaneously, sending and receiving instant messaging messages. The client can be a communication device with network communication capabilities, such as a desktop computer, laptop computer, tablet computer, smartphone, or smart wearable device. Of course, the client can also be software running on the above communication devices. The client can be used by the user to send instant messaging messages.
在本实施方式中,即时通讯消息可以包括文本、语音、图片或文件等。当然,即时通讯消息的内容不限于上述列举。In this embodiment, the instant messaging message may include text, voice, picture or file, etc. Of course, the content of the instant messaging message is not limited to the above.
在本实施方式中,在本实施方式中,所述预设信息类型标识的当前取值可以为第一取值或第二取值。由于即时通讯消息的发送方发出的信息附带有所述预设信息类型标识的当前取值,因此,即时通讯消息的接收方接收到的即时通讯消息为附带有所述预设信息类型标记的当前取值。当所述当前取值为第一取值时,表示当前信息为第一信息类型;当所述当前取值为第二取值时,表示当前信息为第二信息类型。In this embodiment, the current value of the preset information type identifier can be a first value or a second value. Since the message sent by the sender of the instant messaging message is accompanied by the current value of the preset information type identifier, the instant messaging message received by the receiver of the instant messaging message is accompanied by the current value of the preset information type identifier. When the current value is the first value, it indicates that the current message is of the first information type; when the current value is the second value, it indicates that the current message is of the second information type.
步骤S22:在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,在所述会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,在会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。Step S22: When the current value of the preset information type identifier of the instant messaging message is the first value, the preset information is displayed in the conversation window, and the preset information indicates that an instant messaging message of the first information type has been received; when the current value of the preset information type identifier of the instant messaging message is the second value, the instant messaging message is displayed in the conversation window; wherein, the instant messaging message of the first information type and the preset information of the second information type are displayed in the same conversation window.
在本实施方式中,所述预设信息具体可以为预先存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。所述预设信息还可以为其他具体形式,本申请在此并不做具体限定。In this embodiment, the preset information can be a combination of one or more images, character strings, voices, and videos pre-stored in the memory. The preset information can also be in other specific forms, which are not specifically limited in this application.
在本实施方式中,在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,表示当前信息为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。In this embodiment, when the current value of the preset information type identifier of the instant messaging message is the first value, it indicates that the current message is of the first information type. This indicates that the instant messaging message that the user is currently sending has high privacy or security requirements. To protect the user's privacy, the specific content of the message is not directly displayed in the conversation window. Instead, the content of the instant messaging message is displayed in the conversation window using preset information instead.
在本实施方式中,所述预设信息可以为预先设置并存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。在消息接收方对应的客户端,所述预设信息被点击之后,可以向用于展示与所述预设信息对应的即时通讯消息内容。当所述预设信息被点击之后,可以向即时通讯的消息发送方发送删除指令,并可以在预定的时间内将所述预设信息取消显示。In this embodiment, the preset information can be a combination of one or more of an image, a string, a voice, and a video that is pre-set and stored in a memory. When the preset information is clicked on the client corresponding to the message recipient, the instant messaging message content corresponding to the preset information can be displayed to the user. When the preset information is clicked, a deletion instruction can be sent to the instant messaging message sender, and the preset information can be removed from display within a predetermined time.
在本实施方式中,当所述预设信息类型标识为所述第二取值时,可以表示当前的即时通讯消息的消息类型为第二信息类型,此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。很多情况下,该消息中可能包含有需要即时通讯的双方记录的内容,例如具体的时间、地点等等。因此,该即时通讯消息可以在会话窗口直接展示出来,以便于用户查看。In this embodiment, when the preset information type identifier is the second value, it can indicate that the message type of the current instant messaging message is the second information type. In this case, the instant messaging message that the user needs to send has low privacy protection requirements or low security protection requirements, but is convenient for the user to read and record. In many cases, this message may contain content that both parties need to record, such as the specific time and location. Therefore, this instant messaging message can be directly displayed in the conversation window for user viewing.
在本实施方式中,当在会话窗口显示有预设信息时,其可以表示所述预设信息对应的即时通讯消息的消息类型为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。进一步的,在消息接收方点开阅读后,所述即时通讯消息可以在预定的时间内删除,以防止被他人翻阅即时通讯消息记录,泄露隐私。In this embodiment, when preset information is displayed in the conversation window, it may indicate that the instant messaging message corresponding to the preset information is of the first message type. This indicates that the instant messaging message the user is currently sending requires high privacy or security protection. To protect the user's privacy, the specific content of the message is not displayed directly in the conversation window. Instead, the preset information is used to replace the content of the instant messaging message. Furthermore, after the recipient clicks to read the message, the instant messaging message can be deleted within a predetermined time period to prevent others from browsing the instant messaging message history and leaking privacy.
在本实施方式中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息可以在同一个会话窗口展示,以便于用户阅读和操作,从而提高用户体验。In this embodiment, the instant messaging message of the first information type and the preset information of the second information type can be displayed in the same conversation window to facilitate user reading and operation, thereby improving user experience.
本申请实施方式,通过读取预设信息类型标识的当前取值,可以根据预设信息类型标识的当前取值确定当前即时通讯消息的信息类型,使得在会话窗口的展示框中能够根据所述当前取值对即时通讯消息进行区别展示。如在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;进而实现了在同一个会话窗口,根据用户需求对不同的即时通讯消息进行不同类型即时通讯消息的切换,简化了用户操作,提高了用户体验。In the embodiments of the present application, by reading the current value of the preset information type identifier, the information type of the current instant messaging message can be determined based on the current value of the preset information type identifier, so that the instant messaging message can be displayed differently in the display frame of the conversation window based on the current value. For example, when the preset information type identifier is the first value, the preset information is displayed in the display frame of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display frame of the conversation window. This enables switching between different types of instant messaging messages based on user needs within the same conversation window, simplifying user operations and improving user experience.
在一个实施方式中,在所述会话窗口的所述预设信息发生点击事件时在所述会话窗口的展示框中展示所述预设信息对应的即时通讯消息;在预设条件达成时,取消显示所述预设信息对应的即时通讯消息;在所述会话窗口取消显示所述预设信息。In one embodiment, when a click event occurs on the preset information in the conversation window, an instant messaging message corresponding to the preset information is displayed in a display frame of the conversation window; when a preset condition is met, the instant messaging message corresponding to the preset information is canceled; and the preset information is canceled from display in the conversation window.
在本实施方式中,所述点击事件可以为该即时通讯消息接收方的客户端对应的控件检测到了预定的信号。进一步的,可以根据所述预定信号控制将所述预设信息对应的即时通讯消息在所述会话窗口的展示框中进行展示。具体的,所述点击事件可以为在所述预设信息位置接收到的触摸点击或者按压等。In this embodiment, the click event may be a predetermined signal detected by a control corresponding to the client of the instant messaging message recipient. Furthermore, the instant messaging message corresponding to the preset information may be displayed in a display frame of the conversation window based on the predetermined signal. Specifically, the click event may be a touch click or press received at the preset information location.
在本实施方式中,所述预设条件可以为所述预设信息位置处再次被点击,或者可以为在所述即时通讯消息开始展示至预设时长后,或者可以为长按的点击事件停止时、或者可以为接收到手机晃动等。当然,所述预设条件不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。In this embodiment, the preset condition can be that the preset information position is clicked again, or it can be after the instant messaging message starts to be displayed for a preset time, or it can be when the long press click event stops, or it can be when the phone is shaken, etc. Of course, the preset condition is not limited to the above description. Those skilled in the art may make other changes based on the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of this application, they should be included in the scope of protection of this application.
在本实施方式中,在预设条件达成时,取消显示所述预设信息对应的即时通讯消息,以保护用户隐私。另外,也可以删除所述即时通讯消息,防止被他人翻阅即时通讯消息记录,并防止不必要的信息占用内存。In this embodiment, when the preset condition is met, the instant messaging message corresponding to the preset information is canceled to protect the user's privacy. In addition, the instant messaging message can also be deleted to prevent others from browsing the instant messaging message record and prevent unnecessary information from occupying memory.
在本实施方式中,可以在所述会话窗口取消显示所述预设信息。在预设信息对应的第一信息类型模式下,当所述预设信息对应的即时通讯消息取消展示时,表示消息接收方已经阅读过该即时通讯消息了,此时可以将对应的预设信息取消展示,不在会话窗口留下通讯痕迹。具体的,可以在所述预设信息对应的即时通讯消息取消展示的同时,在所述会话窗口取消显示所述预设信息;也可以在所述预设信息对应的即时通讯消息取消展示后的预定时间内,在所述会话窗口取消显示;还可以在所述预设信息对应的即时通讯消息取消展示前,就已经设置不再显示所述预设信息。In this embodiment, the preset information can be canceled from display in the conversation window. In the first information type mode corresponding to the preset information, when the instant messaging message corresponding to the preset information is canceled from display, it indicates that the message recipient has read the instant messaging message. At this time, the corresponding preset information can be canceled from display, leaving no trace of the communication in the conversation window. Specifically, the preset information can be canceled from display in the conversation window at the same time as the instant messaging message corresponding to the preset information is canceled from display; it can also be canceled from display in the conversation window within a predetermined time after the instant messaging message corresponding to the preset information is canceled from display; and it can also be set to no longer be displayed before the instant messaging message corresponding to the preset information is canceled from display.
在一个实施方式中,所述会话窗口提供有所述即时通讯消息发送方的身份信息;所述方法还可以包括:展示所述预设信息对应的即时通讯消息时,在所述会话窗口中不展示所述即时通讯消息发送方的身份信息。In one embodiment, the conversation window provides identity information of the instant messaging message sender; the method may further include: when displaying the instant messaging message corresponding to the preset information, not displaying the identity information of the instant messaging message sender in the conversation window.
在本实施方式中,所述会话窗口可以提供有所述即时通讯消息发送方的身份信息。所述身份信息可以用于唯一标识一个即时通讯消息发送方。具体的,所述身份信息可以为用户自定义名称、用户通信号码、用户在即时通讯消息软件中注册的账户等。In this embodiment, the conversation window may provide the identity information of the instant messaging message sender. The identity information may be used to uniquely identify an instant messaging message sender. Specifically, the identity information may be a user-defined name, a user communication number, an account registered by the user in the instant messaging software, etc.
在本实施方式中,当展示所述预设信息对应的即时通讯消息时,由于所述预设信息对应的即时通讯消息为第一信息类型。所述第一信息类型其可以表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息,因此可以在所述会话窗口中不展示所述即时通讯消息发送方的身份信息,从而保护用户隐私。In this embodiment, when displaying the instant messaging message corresponding to the preset information, since the instant messaging message corresponding to the preset information is of the first information type, the first information type may indicate that the instant messaging message that the user currently wants to send has high privacy protection requirements or high security protection requirements. Therefore, the identity information of the sender of the instant messaging message may not be displayed in the conversation window, thereby protecting the user's privacy.
在一个具体的实施方式中,在展示所述第一信息类型的即时通讯消息的步骤中,还包括:将所述第一信息类型的即时通讯消息在新建窗口中展示,所述新建窗口遮挡所述身份信息。In a specific embodiment, the step of displaying the instant messaging message of the first information type further includes: displaying the instant messaging message of the first information type in a newly created window, wherein the newly created window covers the identity information.
在本实施方式中,在展示所述第一信息类型的即时通讯消息时,可以在所述会话窗口的所述预设信息发生点击事件时,在所述会话窗口上显示一个新建窗口,将所述第一信息类型的即时通讯消息在新建窗口中展示。此时所述会话窗口可以全部或者部分被所述新建窗口遮挡。至少的,所述会话窗口中的身份信息能够被所述新建窗口遮挡,从而避免即时通讯消息的接收方将所述带有身份信息的即时通讯消息进行截屏传播或者是被他人拍照等,因此可以进一步保护用户的隐私安全。In this embodiment, when displaying an instant messaging message of the first information type, a new window can be displayed on the conversation window when a click event occurs on the preset information in the conversation window, and the instant messaging message of the first information type can be displayed in the new window. In this case, the conversation window can be fully or partially obscured by the new window. At the very least, the identity information in the conversation window can be obscured by the new window, thereby preventing the recipient of the instant messaging message from taking a screenshot and disseminating the instant messaging message containing the identity information, or having others take photos of it, thereby further protecting the user's privacy.
在一个具体的实施方式中,请参阅图10,在展示所述第一信息类型的即时通讯消息的步骤S22中,还可以包括:In a specific embodiment, referring to FIG. 10 , the step S22 of displaying the instant messaging message of the first information type may further include:
步骤S220:将所述会话窗口的身份信息隐藏;Step S220: hiding the identity information of the conversation window;
步骤S222:在取消展示所述预设信息对应的即时通讯消息后,在所述会话窗口恢复显示所述身份信息。Step S222: After canceling the display of the instant messaging message corresponding to the preset information, the identity information is restored to be displayed in the conversation window.
在本实施方式中,在展示所述第一信息类型的即时通讯消息时,可以将所述身份信息隐藏的具体方式可以为:将所述身份信息的显示属性设置为隐藏,或者将其设置为透明,或者,在会话窗口显示身份信息的位置设置遮挡图层,该遮挡图层可以是马赛克。当然,所述身份信息隐藏的具体方式不限于上述描述。所属领域技术人员在本申请的技术精髓启示下,还可能做出其他的变更,但只要其实现的功能和效果与本申请相同或相似,均应涵盖于本申请保护范围内。In this embodiment, when displaying an instant messaging message of the first information type, the identity information can be hidden by setting the display attribute of the identity information to hidden, or setting it to transparent, or setting a masking layer at the location where the identity information is displayed in the conversation window, and the masking layer can be a mosaic. Of course, the specific method of hiding the identity information is not limited to the above description. Inspired by the technical essence of this application, those skilled in the art may make other changes, but as long as the functions and effects achieved are the same or similar to those of this application, they should be covered by the scope of protection of this application.
在本实施方式中,在取消展示所述预设信息对应的即时通讯消息后,在所述会话窗口可以恢复显示所述身份信息,以便该消息接收方明确当前即时通讯的具体对象。In this embodiment, after the instant messaging message corresponding to the preset information is canceled, the identity information can be restored to be displayed in the conversation window so that the message recipient can clearly identify the specific object of the current instant messaging.
请参阅图11,本申请实施方式还提供一种客户端200,其包括:接收模块20、展示模块22。Please refer to FIG. 11 . The embodiment of the present application further provides a client 200 , which includes: a receiving module 20 and a display module 22 .
接收模块20,用于接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值。The receiving module 20 is used to receive an instant messaging message; wherein the instant messaging message is accompanied by a current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type.
在本实施方式中,客户端之间可以进行即时通讯,收发即时通讯消息。客户端可以是具有网络通讯功能的通信设备,例如台式电脑、笔记本电脑、平板电脑、智能手机和智能可穿戴设备等。当然,客户端也可以为运行于上述通信设备中的软件。所述客户端可以被用户使用,以发出即时通讯消息。In this embodiment, clients can communicate with each other instantaneously, sending and receiving instant messaging messages. The client can be a communication device with network communication capabilities, such as a desktop computer, laptop computer, tablet computer, smartphone, or smart wearable device. Of course, the client can also be software running on the above communication devices. The client can be used by the user to send instant messaging messages.
在本实施方式中,即时通讯消息可以包括文本、语音、图片或文件等。当然,即时通讯消息的内容不限于上述列举。In this embodiment, the instant messaging message may include text, voice, picture or file, etc. Of course, the content of the instant messaging message is not limited to the above.
在本实施方式中,在本实施方式中,所述预设信息类型标识的当前取值可以为第一取值或第二取值。由于即时通讯消息的发送方发出的信息附带有所述预设信息类型标识的当前取值,因此,即时通讯消息的接收方接收到的即时通讯消息为附带有所述预设信息类型标记的当前取值。当所述当前取值为第一取值时,表示当前信息为第一信息类型;当所述当前取值为第二取值时,表示当前信息为第二信息类型。In this embodiment, the current value of the preset information type identifier can be a first value or a second value. Since the message sent by the sender of the instant messaging message is accompanied by the current value of the preset information type identifier, the instant messaging message received by the receiver of the instant messaging message is accompanied by the current value of the preset information type identifier. When the current value is the first value, it indicates that the current message is of the first information type; when the current value is the second value, it indicates that the current message is of the second information type.
展示模块22,用于在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,在所述会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,在会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。Display module 22 is used to display preset information in the conversation window when the current value of the preset information type identifier of the instant messaging message is the first value, and the preset information indicates that an instant messaging message of the first information type has been received; when the current value of the preset information type identifier of the instant messaging message is the second value, display the instant messaging message in the conversation window; wherein the instant messaging message of the first information type and the preset information of the second information type are displayed in the same conversation window.
在本实施方式中,所述预设信息具体可以为预先存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。所述预设信息还可以为其他具体形式,本申请在此并不做具体限定。In this embodiment, the preset information can be a combination of one or more images, character strings, voices, and videos pre-stored in the memory. The preset information can also be in other specific forms, which are not specifically limited in this application.
在本实施方式中,在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,表示当前信息为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。In this embodiment, when the current value of the preset information type identifier of the instant messaging message is the first value, it indicates that the current message is of the first information type. This indicates that the instant messaging message that the user is currently sending has high privacy or security requirements. To protect the user's privacy, the specific content of the message is not directly displayed in the conversation window. Instead, the content of the instant messaging message is displayed in the conversation window using preset information instead.
在本实施方式中,所述预设信息可以为预先设置并存储在存储器中的图片、字符串、语音、视频中的一种或多种结合。在消息接收方对应的客户端,所述预设信息被点击之后,可以向用于展示与所述预设信息对应的即时通讯消息内容。当所述预设信息被点击之后,可以向即时通讯的消息发送方发送删除指令,并可以在预定的时间内将所述预设信息取消显示。In this embodiment, the preset information can be a combination of one or more of an image, a string, a voice, and a video that is pre-set and stored in a memory. When the preset information is clicked on the client corresponding to the message recipient, the instant messaging message content corresponding to the preset information can be displayed to the user. When the preset information is clicked, a deletion instruction can be sent to the instant messaging message sender, and the preset information can be removed from display within a predetermined time.
在本实施方式中,当所述预设信息类型标识为所述第二取值时,可以表示当前的即时通讯消息的消息类型为第二信息类型,此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较低或者安全性保护较低但便于用户阅读和记录的消息。很多情况下,该消息中可能包含有需要即时通讯的双方记录的内容,例如具体的时间、地点等等。因此,该即时通讯消息可以在会话窗口直接展示出来,以便于用户查看。In this embodiment, when the preset information type identifier is the second value, it can indicate that the message type of the current instant messaging message is the second information type. In this case, the instant messaging message that the user needs to send has low privacy protection requirements or low security protection requirements, but is convenient for the user to read and record. In many cases, this message may contain content that both parties need to record, such as the specific time and location. Therefore, this instant messaging message can be directly displayed in the conversation window for user viewing.
在本实施方式中,当在会话窗口显示有预设信息时,其可以表示所述预设信息对应的即时通讯消息的消息类型为第一信息类型。此时,表示用户当前需要发送的即时通讯消息为隐私保护要求较高或者安全性保护要求较高的消息。为了保护用户的隐私,在会话窗口不直接展示消息的具体内容,而是通过在所述会话窗口中用预设信息代替所述即时通讯消息的内容进行展示。进一步的,在消息接收方点开阅读后,所述即时通讯消息可以在预定的时间内删除,以防止被他人翻阅即时通讯消息记录,泄露隐私。In this embodiment, when preset information is displayed in the conversation window, it may indicate that the instant messaging message corresponding to the preset information is of the first message type. This indicates that the instant messaging message the user is currently sending requires high privacy or security protection. To protect the user's privacy, the specific content of the message is not displayed directly in the conversation window. Instead, the preset information is used to replace the content of the instant messaging message. Furthermore, after the recipient clicks to read the message, the instant messaging message can be deleted within a predetermined time period to prevent others from browsing the instant messaging message history and leaking privacy.
在本实施方式中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息可以在同一个会话窗口展示,以便于用户阅读和操作,从而提高用户体验。In this embodiment, the instant messaging message of the first information type and the preset information of the second information type can be displayed in the same conversation window to facilitate user reading and operation, thereby improving user experience.
本申请实施方式,通过读取预设信息类型标识的当前取值,可以根据预设信息类型标识的当前取值确定当前即时通讯消息的信息类型,使得在会话窗口的展示框中能够根据所述当前取值对即时通讯消息进行区别展示。如在所述预设信息类型标识为所述第一取值时,在所述会话窗口的展示框中展示预设信息;在所述预设信息类型标识为所述第二取值时,在所述会话窗口的展示框中展示所述即时通讯消息;进而实现了在同一个会话窗口,根据用户需求对不同的即时通讯消息进行不同类型即时通讯消息的切换,简化了用户操作,提高了用户体验。In the embodiments of the present application, by reading the current value of the preset information type identifier, the information type of the current instant messaging message can be determined based on the current value of the preset information type identifier, so that the instant messaging message can be displayed differently in the display frame of the conversation window based on the current value. For example, when the preset information type identifier is the first value, the preset information is displayed in the display frame of the conversation window; when the preset information type identifier is the second value, the instant messaging message is displayed in the display frame of the conversation window. This enables switching between different types of instant messaging messages based on user needs within the same conversation window, simplifying user operations and improving user experience.
请参阅图12,本申请实施方式还提供一种客户端210,其包括:通信模块21、处理器23和显示器25。Please refer to FIG. 12 . The embodiment of the present application further provides a client 210 , which includes: a communication module 21 , a processor 23 , and a display 25 .
在本实施方式中,所述通信模块21能进行网络通信收发数据。通信模块可以是依照TCP/IP协议设置,并在该协议框架下进行网络通信。具体的,其可以为无线移动网络通信芯片,如GSM、CDMA等;其还可以为Wifi芯片;其还可以为蓝牙芯片。In this embodiment, the communication module 21 is capable of transmitting and receiving data via network communication. The communication module may be configured in accordance with the TCP/IP protocol and perform network communication within this protocol framework. Specifically, it may be a wireless mobile network communication chip, such as GSM or CDMA; it may also be a Wi-Fi chip; or it may be a Bluetooth chip.
在本实施方式中,所述处理器23通过所述通信模块21接收即时通讯消息;其中,所述即时通讯消息附带有预设信息类型标识的当前取值;其中,所述预设信息类型标识的当前取值包括表示当前信息为第一信息类型的第一取值,和表示当前信息为第二信息类型的第二取值;在所述即时通讯消息的预设信息类型标识的当前取值为所述第一取值时,控制所述显示器25在所述会话窗口展示预设信息,所述预设信息表示接收到第一信息类型的即时通讯消息;在所述即时通讯消息的预设信息类型标识的当前取值为所述第二取值时,控制所述显示器25在会话窗口展示所述即时通讯消息;其中,所述第一信息类型的即时通讯消息和所述第二信息类型的预设信息在同一个会话窗口展示。In this embodiment, the processor 23 receives an instant messaging message through the communication module 21; wherein the instant messaging message is accompanied by a current value of a preset information type identifier; wherein the current value of the preset information type identifier includes a first value indicating that the current information is of a first information type, and a second value indicating that the current information is of a second information type; when the current value of the preset information type identifier of the instant messaging message is the first value, the display 25 is controlled to display preset information in the session window, wherein the preset information indicates that an instant messaging message of the first information type has been received; when the current value of the preset information type identifier of the instant messaging message is the second value, the display 25 is controlled to display the instant messaging message in the session window; wherein the instant messaging message of the first information type and the preset information of the second information type are displayed in the same session window.
在本实施方式中,所述处理器23可以按任何适当的方式实现。例如,处理器23可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application SpecificIntegratedCircuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。本申请并不作限定。In this embodiment, the processor 23 may be implemented in any suitable manner. For example, the processor 23 may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, an embedded microcontroller, etc. This application is not limited thereto.
本申请客户端可以是本申请即时通讯消息提示方法的一种硬件实施方式,可以实现本申请即时通讯方法实施方式并达到方法实施方式的技术效果。The client of the present application can be a hardware implementation of the instant messaging message prompt method of the present application, which can realize the implementation of the instant messaging method of the present application and achieve the technical effect of the implementation of the method.
本说明书中的上述各个实施方式均采用递进的方式描述,各个实施方式之间相同相似部分相互参照即可,每个实施方式重点说明的都是与其他实施方式不同之处。尤其对于客户端实施方式而言,由于其处理器执行的工作基本相似于方法实施方式,所以描述的比较简单,相关之处参见方法实施方式部分说明即可。The above-mentioned embodiments are described in this specification in a progressive manner. Similar parts between the various embodiments can be referenced. Each embodiment focuses on the differences between the other embodiments. In particular, for the client embodiment, since the work performed by its processor is basically similar to that of the method embodiment, the description is relatively simple. For relevant parts, refer to the description of the method embodiment.
在本申请文件中,介绍了本申请的多个实施方式,所属领域技术人员可以理解得出,本申请中的实施方式之间可以互相组合。而且,所属领域技术人员知道,本申请有许多变形和变化而不脱离本申请的精神,希望所附的权利要求包括这些变形和变化而不脱离本申请的精神。This application document describes multiple embodiments of the present invention. Those skilled in the art will appreciate that the embodiments described herein may be combined with one another. Furthermore, those skilled in the art will appreciate that many variations and modifications are possible without departing from the spirit of the present invention, and it is intended that the appended claims encompass such variations and modifications without departing from the spirit of the present invention.
Claims (15)
Publications (3)
| Publication Number | Publication Date |
|---|---|
| HK1237450A HK1237450A (en) | 2018-04-13 |
| HK1237450A1 HK1237450A1 (en) | 2018-04-13 |
| HK1237450B true HK1237450B (en) | 2021-04-30 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7263442B2 (en) | System and method for real-time remote control of mobile applications | |
| CN105871690B (en) | Method and device for realizing instant messaging | |
| US10225215B2 (en) | Method and system for caching input content | |
| CN103618830B (en) | A kind of people of unread information inspection method and device | |
| CN106527883B (en) | Content sharing method and device and terminal | |
| WO2016139977A1 (en) | Server, method for controlling server, and program | |
| WO2017084183A1 (en) | Information displaying method and device | |
| WO2018171503A1 (en) | File hiding method and device | |
| US10775982B2 (en) | Methods and systems for managing multiple modes of communication within a single on-screen user interface | |
| CN110955374A (en) | Message display method and device | |
| CN108052263A (en) | Screen capture method based on terminal equipment and terminal equipment | |
| WO2022057393A1 (en) | Event processing method and apparatus, storage medium, mobile terminal, and computer | |
| CN106888150B (en) | Instant message processing method and device | |
| CN106708354B (en) | Instant messaging method and client | |
| US20180196588A1 (en) | Method and apparatus for setting burn-after-reading message by means of pressure | |
| WO2016155145A1 (en) | Information sharing method and device | |
| CN108984098B (en) | Information display control method and device based on social software | |
| WO2020038171A1 (en) | Method and apparatus for recalling image file, control method and apparatus for recalling image file, and mobile terminal | |
| HK1237450B (en) | Instant messaging method and client | |
| CN118377403A (en) | Contact management method, device, electronic device and readable storage medium | |
| CN110069660A (en) | Method and apparatus for showing message | |
| CN110895476B (en) | Information processing method and device and information processing device | |
| CN116610410B (en) | Long screenshot method and device, storage medium and electronic equipment | |
| CN110399177B (en) | Input-based data processing method, device, and device for data processing | |
| CN107145286B (en) | Browsing interaction processing method and device |